Load a package

pload(package, action = "auto")

Arguments

package

package name

action

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

Value

the selected package loaded to the R session

Details

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

Author

Guangchuang Yu