require_pkgs | R Documentation |
Takes a vector of package names and passes each name to
requireNamespace()
;
if package(s) are missing, returns an error message providing the basic
install.packages()
command to install them.
require_pkgs(pkgs)
pkgs |
A character vector of package names. |
## Not run:
require_pkgs(c("a", "base", "b", "c"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.