loadPkg | R Documentation |
use this function to conveniently load libraries and work smoothly with knitting can add quietly=T option to the require() function the loadPkg function essentially replaced/substituted two functions install.packages() and library() in one step. alternative CRAN example, "http://cran.rstudio.com" Combining install.packages() (if needed) with library() in one, knitr friendly. ELo 2019 GWU DATS
loadPkg(pkg, reposurl = "http://cran.us.r-project.org")
pkg |
Name of package |
reposurl |
CRAN/repo url |
loadPkg("ggplot2", "http://cran.rstudio.com")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.