Learn R Programming

ANTsR (version 0.3.3)

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

usePkg("randomForest")

Run the code above in your browser using DataLab