View source: R/package-related.R
usePackage | R Documentation |
The usePackage function takes a single command, the name of a package, and will install it, if not already installed, and then load it. Taken from https://github.com/sussyfuss/usefulScripts
usePackage(p, repos = "http://cran.us.r-project.org")
p |
A package name as a string in quotes. |
repos |
Defaults to US cran otherwise put a cran mirror in as character |
usePackage("readr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.