libs | R Documentation |
Install and load packages "on the fly".
libs(...)
... |
Comma-separated unquoted package names |
The 'agridat' package uses dozens of packages in the examples for each dataset. The 'libs' function provides a simple way to load multiple packages at once, and can install any missing packages on-the-fly.
This is very similar to the 'pacman::p_load' function.
None
Kevin Wright
None
## Not run:
libs(dplyr,reshape2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.