One combined function to load (multiple) packages, and automatically install them if needed
1 |
... |
list of packages to install |
order |
logical specifying whether packages should be loaded in order. If TRUE, first argument is loaded first (so comes last in search()) if FALSE, R tries to load packages first, then installs any misses, so new packages are on top. FALSE is slightly faster |
verbose |
logical, whether to print messages from require and install.package |
extras |
logical. Some packages need extra initialization, e.g. extrafonts needs to install fonts. Should extra initializations be done on installation? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.