Skip to contents

This function converts a set of R package names to a description file and then passes this to ci_sysreqs() for system requirements detection.

Usage

ci_new_pkgs_sysreqs(pkgs, ...)

Arguments

pkgs

the list of packages, each an element with a package field

...

extra options to be passed to ci_sysreqs()`

Examples

Sys.setenv(R_USER_CACHE_DIR = tempfile())

pkgs <- list(list(package = "knitr", package = "rmarkdown"))
if (startsWith(tolower(R.version$os), "linux")) {
  vise::ci_new_pkgs_sysreqs(pkgs, execute = FALSE)
}
#> [1] "ubuntu" "24.04" 
#> No system dependencies to install
#> <environment: 0x5589ed4b4150>