Learn R Programming

yulab.utils (version 0.2.3)

pload: pload

Description

Load a package

Usage

pload(package, action = "auto")

Value

the selected package loaded to the R session

Arguments

package

package name

action

Installation function; "auto" tries BiocManager::install() if available

Author

Guangchuang Yu

Details

Uses library() to load package. If not installed, attempts installation via rlang::check_installed() (optionally using BiocManager::install()).

See Also

Other pkg-utils: CRANpkg(), Githubpkg(), get_dependencies(), get_fun_from_pkg(), is.installed(), mypkg(), packageTitle()