r-lib / devtools

Tools to make an R developer's life easier
https://devtools.r-lib.org
Other
2.37k stars 755 forks source link

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

Closed cgiachalis closed 8 months ago

cgiachalis commented 1 year ago

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 commented 8 months ago

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.