View source: R/check_packages.R
check_packages | R Documentation |
Check that packages are installed and install them if not. Optionally: make sure that the most recent version of 'env' packages is installed; load the packages; and/or write a bibliography for the packages.
check_packages(packages, update_env = FALSE, lib = FALSE, bib = FALSE, ...)
packages |
Character. Packages to check |
update_env |
Logical. Check for any updates to 'env' packages? |
lib |
Logical. Call |
bib |
Logical. Call |
... |
Passed to the bib_file argument of |
Unique, sorted vector of package names. Optionally, loads packages and/or writes bibliography.
check_packages(c("dplyr", "envFunc"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.