loading a package

pload(package, action = "auto")

Arguments

package

package name

action

function used to install package. If 'action = "auto"', it will try to use 'BiocManager::install()' if it is available.

Value

the selected package loaded to the R session

Details

The function use 'library()' to load the package. If the package is not installed, the function will try to install it before loading it.

Author

Guangchuang Yu