mooreryan / featuretable

MIT License
1 stars 1 forks source link

FeatureTable

R-CMD-check

Note: I still consider FeatureTable to be in the pre-release stage. The code itself is well tested and I use it in my own research, but the API has not stabalized and is still subject to breaking changes when I cut a new release.

Installing

The simplest was is probably by using the remotes package:

remotes::install_github(
  repo = "mooreryan/featuretable",
  build_vignettes = TRUE, build = TRUE, force = TRUE, upgrade = "never",
  # This will ensure that all suggested dependencies are installed as well.
  dependencies = TRUE
)

Note: you can install a specific tag or relase by replacing this "mooreryan/featuretable" with something like this "mooreryan/featuretable@0.0.11". (That would install tag 0.0.11.)

Alternatively, you could procure the code, and install with devtools. To obtain the code, either:

Then install with devtools. (Ensure that you are running this from the root of the project's source directory.)

devtools::install(
  build_vignettes = TRUE, build = TRUE, force = TRUE, upgrade = "never",
  # This will ensure that all suggested dependencies are installed as well.
  dependencies = TRUE
)

Dependencies

Here is some info about the dependencies. Note that if you used one of the code snippets above, all the optional dependencies will be installed as well.

Required

These packages must be installed to use featuretable.

Suggested

Test suite dependencies

Usage

Vignettes

FeatureTable comes with some detailed vignettes describing its usage. After installing, you can view them with the following command:

browseVignettes("featuretable")

Function docs

Additionally, each function has a lot of info in the help section. You can run ?featuretable to get an overview of everything. Click on the links in there to get to individual function docs. You can also access function docs with the ?, e.g., ?keep_samples.

R v3 and v4 compatibility

R CMD CHECK, which includes unit tests, are run via GitHub CI for the following versions:

So as long as that is passing (see the badge at the top of the README), then you can be (pretty) sure the package works with both R v3 and v4.

Notes:

Hacking

Notes for working on the code.

Just

Just go and install just. Then use the recipes in the justfile.

Default branch is now main

The default branch is now main, and the master branch no longer exists.

If you have a local clone using master as the default branch, you can update it by running the following commands.

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

Optionally, run the following command to remove tracking references to the old branch name.

git remote prune origin