View source: R/needsPackages.R
needsPackages | R Documentation |
This function checks for needed packages
needsPackages(pkgs, install = TRUE,
update = FALSE,
load = FALSE,
attach = FALSE)
pkgs |
A list of names of packages to check. |
install |
Whether to install missing packages. |
update |
Whether to update all packages that can be updated. |
load |
Whether to load namespaces for packages. |
attach |
Whether to run library calls. |
Each of the boolean arguments can be a vector
of the same length as pkgs
, applying separately
to each entry.
Called for the side effects.
# This shouldn't do anything, as patchDVI must already be
# installed!
needsPackages("patchDVI")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.