loadLibraries | R Documentation |
loadLibraries
checks whether the package is already installed,
installing those which are not preinstalled. All the libraries are then loaded.
loadLibraries(..., repo = "https://cran.rstudio.com")
... |
A list of packages |
repo |
The repository to load functions from. Defaults to "https://cran.rstudio.com" |
Especially useful when running on virtual machines where package installation is not persistent (Like UoS sve). It will fail if the packages need to be installed but there is no internet access.
NB: in R 'require' tries to load a package but throws a warning & moves on if it's not there whereas 'library' throws an error if it can't load the package. Hence 'loadLibraries' https://stackoverflow.com/questions/5595512/what-is-the-difference-between-require-and-library
Luke Blunden, lsb@soton.ac.uk (original)
Michael Harper m.harper@soton.ac.uk (revised version)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.