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

Command line argument "--install-tests" is passed to R CMD INSTALL by default #2515

Closed
cgiachalis opened this issue May 30, 2023 · 1 comment

Comments

@cgiachalis
Copy link

cgiachalis commented May 30, 2023

Is it intentional in devtools::install()? The only way to ignore "--install-tests" is to set keep_source = TRUE. Thanks.

    opts <- c(
      if (keep_source) "--with-keep.source",
      "--install-tests"
    )
    if (quick) {
      opts <- c(opts, "--no-docs", "--no-multiarch", "--no-demo")
    }
    opts <- c(opts, args)

https://github.com/r-lib/devtools/blob/daca0cf04413a9d251b3e55f80091afa07a60ab2/R/install.R#LL71C1-L78C26

@jennybc
Copy link
Member

jennybc commented Nov 2, 2023

It's been this way for a very long time and I can't find any related issues or discussion. So I'm going to say, yes, this is intentional and has stood the test of time.

@jennybc jennybc closed this as completed Nov 2, 2023
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

2 participants