usePkg: Use any package. If package is not installed, this will...

Description Usage Arguments Value Author(s) Examples

View source: R/usePkg.R

Description

Use any package. If package is not installed, this will install from CRAN.

Usage

1
usePkg(packageName, allowInstall = FALSE)

Arguments

packageName

Name of package as *string*.

allowInstall

let the package be installed from CRAN

Value

TRUE if package successfully loaded, FALSE otherwise.

Author(s)

Benjamin M. Kandel, BB Avants

Examples

1
2
usePkg("randomForest")
usePkg("stats", allowInstall = TRUE)

muschellij2/atropos documentation built on Oct. 11, 2018, 12:24 a.m.