powered by
Installs a package if it needs to be installed, and calls require to load the package. Author: Scott Sobel. Tech Review: Bryce Chamberlain.
usepkg(packages, noCache = FALSE, repos = "http://cran.us.r-project.org")
Character or character vector with names of the packages you want to use.
When checking packages, you can choose to ignore the cached list, which will increase accuracy but decrease speed.
choose the URL to install from.
# packages shouldn't be installed during tests or examples according to CRAN. # therefore, examples cannot be provided because CRAN now runs donttest examples.
Run the code above in your browser using DataLab