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

View source: R/usePkg.R

usePkgR Documentation

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

Description

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

Usage

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


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


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.