Description Usage Arguments Value See Also Examples
check_install
checks if a package is already installed. If it is not
installed, then install the package (from CRAN).
1 | check_install(pkgs, repos = NULL, ...)
|
pkgs |
List or vector of packages to check and optionally install. |
repos |
Character vector of the base URL(s) of the repositories to use, e.g., the URL of a CRAN mirror. |
... |
List of options to pass install.packages. |
Invisibly returns the input pkgs list or vector. The function is called for its side effects.
1 2 3 4 5 6 7 | req_pkgs <- list(
"dplyr",
"purrr",
"rprojroot"
)
check_install(req_pkgs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.