- pkgs
pkgs
can be 1) a character vector of R packages to resolve, 2) a path to a renv
lockfile, or 3) a data structure that as_pkgrefs()
can convert to a character vector of package references. For 1) pkgs
can be either in shorthands, e.g. "rtoot", "ropensci/readODS", or in package references, e.g. "cran::rtoot", "github::ropensci/readODS". Please refer to the Package References documentation of pak
for details. Currently, this package supports only cran and github packages. For 2) as_pkgrefs()
support the output of sessionInfo()
, a renv lockfile or a single directory. If it is a single directory, all R scripts are scanned for R packages used using renv::dependencies()
. Currently, the default is to scan the R scripts in the current working directory. Please also note that this scanning only assumes there are CRAN and Bioconductor packages. We strongly recommend checking whether this is really the case (see example below).
- snapshot_date
Snapshot date, if not specified, assume to be a month ago
- no_enhances
logical, whether to ignore packages in the "Enhances" field
- no_suggests
logical, whether to ignore packages in the "Suggests" field
- query_sysreqs
logical, whether to query for System Requirements. Important: Archived CRAN can't be queried for system requirements. Those
packages are assumed to have no system requirement.
- os
character, which OS to query for system requirements
- verbose
logical, whether to display messages