Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Wrap some methods directly in R #152
https://github.com/dynverse/dynmethods/tree/scorpius_package is a first attempt at doing this.
When a user runs
Well I can't submit to CRAN if dynutils is not updated!
You can find an example at https://github.com/dynverse/ti_scorpius/tree/package
definition.yml and example.sh are symlinked. This seemed to me the cleanest way of putting these both in the root directory and the package directory.
The definition.yml contains a "package" section, which describes the package. The only place that this is really used is in dynmethods.
Testing is included inside the package but this can be quite verbose because I don't want to depend directly dyntoy. So the example dataset is generated first using the package/tests/generate_test_data.sh script which calls the package/inst/example.sh scripts which saves an hdf5 file inside package/inst/example.h5 which is used for testing. Not ideal, perhaps we should depend on dyntoy...
Otherwise, most things are pretty clean, e.g. the run.R directly calls the run function of the package, the version number is extracted from the DESCRIPTION, etc
Any recommendations @rcannood ?