Skip to content
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

Setting command line arguments for package installation #394

Open
kkmann opened this issue Nov 16, 2024 · 0 comments
Open

Setting command line arguments for package installation #394

kkmann opened this issue Nov 16, 2024 · 0 comments

Comments

@kkmann
Copy link

kkmann commented Nov 16, 2024

I opened this issue in {pak} before, but I think it is better addressed in {pkgdepends}. Here is the link to the original issue r-lib/pak#514.

I would like to test installed packages using tools::testInstalledPackage(), see https://rdrr.io/r/tools/testInstalledPackage.html.

In order to run all R code in the examples, tests, and vignettes, examples and tests need to be explicitly installed during installation. For examples this is the default, for tests not.

In order to do that, one would have to set R CMD INSTALL --install-tests as installation command line argument.

I am not sure how to set command line arguments in a package installation plan.

It seems that this might already be possible, see the cmd_args argument in make_build_process()

pkgdepends/R/install-plan.R

Lines 356 to 357 in 6741f04

make_build_process <- function(path, pkg, tmp_dir, lib, vignettes,
needscompilation, binary, cmd_args) {
but it is unlcear to me how to pass it from a package installation proposal since there is not configuation option matching the argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant