powered by
This function checks for needed packages
needsPackages(pkgs, install = TRUE, update = FALSE, load = FALSE, attach = FALSE)
Called for the side effects.
A list of names of packages to check.
Whether to install missing packages.
Whether to update all packages that can be updated.
Whether to load namespaces for packages.
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.
pkgs
# This shouldn't do anything, as patchDVI must already be # installed! needsPackages("patchDVI")
Run the code above in your browser using DataLab