loadPkg: use this function to conveniently load libraries and work...

View source: R/idsLoader.R

loadPkgR 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

Description

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

Usage

loadPkg(pkg, reposurl = "http://cran.us.r-project.org")

Arguments

pkg

Name of package

reposurl

CRAN/repo url

Examples

loadPkg("ggplot2", "http://cran.rstudio.com")

physicsland/ezids documentation built on Feb. 4, 2024, 2:13 a.m.