Determine system requirements from R packages using the RStudio Package Manager. Query with either a list of packages, or an renv
lockfile. If using an renv
lockfile, only CRAN packages will be used.
You can install the development version of sysreqs
from Github with:
remotes::install_github("mdneuzerling/getsysreqs")
Determine system dependencies for both plumber
and rmarkdown
on an Ubuntu 20.04 system:
library(getsysreqs)
get_sysreqs(
c("plumber", "rmarkdown"),
distribution = "ubuntu",
release = "20.04"
)
# [1] "libsodium-dev" "libcurl4-openssl-dev" "libssl-dev" "make"
# [5] "libicu-dev" "pandoc"
Alternatively, pass the file path to an renv
lockfile, or directory containing renv.lock
.
The sysreqs
package generates a list of system dependency installation commands from the DESCRIPTION file of an R package. sysreqs
uses https://sysreqs.r-hub.io/ rather than the Rstudio Package Manager.
I whipped this up in a few hours without much care. If you wish to use this in a serious project, please think again.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.