renv_installed_packages_base <- function() {
# we can assume that the base set of installed packages won't change during
# a session, so cache the result of installed.packages()
renv_global("base.packages", {
packages <- installed.packages(lib.loc = .Library, priority = "base")
as.data.frame(packages, stringsAsFactors = FALSE)
})
}
renv_installed_packages <- function(lib.loc = NULL, priority = NULL, ...) {
packages <- installed.packages(lib.loc = lib.loc, priority = priority, ...)
as.data.frame(packages, stringsAsFactors = FALSE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.