libraries | R Documentation |
This function tries to load more than one package at once. If any of these packages is not installed it tries to istall them and load them afterward.
libraries(x, ...)
x |
character vector. Name(s) of the libraries that are loaded/installed. |
... |
Arguments passed to |
Returns nothing but gives a warning if it cannot load/install a library/package
Simon Frey
require
, library
, install.packages
# loading xts
libraries("xts")
libraries(c("xts","shiny"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.