check_pkgs | R Documentation |
Check for allowed or disallowed package dependencies within a project or directory
installed_pkgs()
missing_pkgs(
dir = here::here(),
glob = "*.R$|*.r$|*.Rmd$|*.rmd$|*.Rnw$|*.rnw|*.Qmd|*.qmd$",
recurse = TRUE
)
install_missing_pkgs(
dir = here::here(),
glob = "*.R$|*.r$|*.Rmd$|*.rmd$|*.Rnw$|*.rnw|*.Qmd|*.qmd$",
recurse = TRUE,
...
)
find_pkgs(
dir = here::here(),
glob = "*.R$|*.r$|*.Rmd$|*.rmd$|*.Rnw$|*.rnw|*.Qmd|*.qmd$",
full = FALSE,
recurse = TRUE
)
check_allowed_pkgs(
pkgs,
dir = here::here(),
glob = "*.R$|*.r$|*.Rmd$|*.rmd$|*.Rnw$|*.rnw|*.Qmd|*.qmd$",
full = FALSE,
recurse = TRUE
)
check_disallowed_pkgs(
pkgs,
dir = here::here(),
glob = "*.R$|*.r$|*.Rmd$|*.rmd$|*.Rnw$|*.rnw|*.Qmd|*.qmd$",
full = FALSE,
recurse = TRUE
)
check_required_pkgs(
pkgs,
dir = here::here(),
glob = "*.R$|*.r$|*.Rmd$|*.rmd$|*.Rnw$|*.rnw|*.Qmd|*.qmd$",
full = FALSE,
recurse = TRUE
)
dir |
Directory to search. |
glob |
File types to search for, defaults to |
recurse |
Should directory be recursively explored (i.e. match files in sub directories) |
... |
Additional arguments passed to |
full |
Should the full data frame of dependencies be returned or just a vector of package names. |
pkgs |
Character vector of package names |
installed_pkgs()
: Returns a vector of installed packages.
missing_pkgs()
: Returns a vector of packages found by find_pkgs
that are not currently installed.
install_missing_pkgs()
: Installs missing packages found by missing_pkgs
.
find_pkgs()
: Find all of the packages used within a project using renv.
check_allowed_pkgs()
: Check that only the allowed packages are used
check_disallowed_pkgs()
: Check if any disallowed packages are used
check_required_pkgs()
: Check that the required packages are used
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.