ci_sysreqs | R Documentation |
This function converts a renv lockfile to a description file and then
determines the system requirements via remotes::system_requirements()
using
the RStudio online resource. This is intended to be run on continuous
integration, so will probably error on macos and windows
ci_sysreqs(
lockfile,
execute = TRUE,
sudo = TRUE,
exclude = c("git", "make", "pandoc")
)
lockfile |
the path to a renv lockfile |
execute |
if |
sudo |
if |
exclude |
packages to exclude from installation because they already exist on the system. |
a vector of exectutible system calls to install the dependencies
lock <- system.file("renv.lock", package = "vise")
# The system requirements for a typical {knitr} installation
if (startsWith(tolower(R.version$os), "linux")) {
print(vise::ci_sysreqs(lock, execute = FALSE))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.