Learn R Programming

ANTsR (version 1.0)

usePkg: 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

T if package successfully loaded, F otherwise.

Examples

Run this code
# NOT RUN {
usePkg("randomForest")
# }

Run the code above in your browser using DataLab