-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R CMD check --flavor=<flavor>: customized add-on package validation #16
Comments
Why not have the argument be
|
@leeper, using I've update top post with your proposal (and some others). |
What about --suite. It is a little murkier with respect to settings, but We could imagine a config file format/mechanism to define these suites, On Tue, Mar 8, 2016 at 10:28 AM, Henrik Bengtsson notifications@github.com
Gabriel Becker, PhD |
(adopted from existing Wiki entry)
Background
By default
validates the package
MyPkg
using a (continuously growing) set of tests/checks. In addition to these, we can runwhich will run an additional set of validation tests to assert that the package meets CRAN's requirements before package submission.
When submitting a package to Bioconductor, they require that in addition to
R CMD check
you also run:to run a "set of tests that encompass Bioconductor Best Practices".
Problems / Issues
Although we currently are provided with great mechanisms for validating R packages, we don't have an easy way to extend and/or customize it (beyond hard-coded command-line options and environment variables). This in turn makes it hard for non-R core developers to implement and share additional package validation tests.
Slightly related: The current
R CMD check --as-cran
hard codes CRAN into the R base distribution. We already have Bioconductor as an additional large-scale package repository. One could imagine others in the future. In other words, there might be a need to decouple CRAN for R base at some point, which would be in line we what we often hear when users ask questions about CRAN and/or R in the wrong forum; "CRAN is not R" and "R is not CRAN".Wish / Suggestion
One approach could be to extend
R CMD check
with an option for running add-on validation tests;For example,
Alternative option names
How?
A natural place to implement add-on package validation tests is in an R package itself. The most straightforward could be to name the package the same as the flavor, i.e. we would have packages
CRAN
andBioconductor
. These packages would then need to export aR_CMD_check_flavor()
function that can be called byR CMD check --flavor=<flavor> MyPkg
.Things to consider
R_CMD_check_flavor()
good enough?R_CMD_check_get_flavors()
function which returns supported "flavors", cf. a vignette build package can provide/register one or more vignette engines.R CMD check --flavor=CRAN,Bioconductor::upcoming
?The text was updated successfully, but these errors were encountered: