library_install: R Utilities: Loading a Package or Installation of a Package...

View source: R/library_install.R

library_installR Documentation

R Utilities: Loading a Package or Installation of a Package if Necessary

Description

Loads packages specified in vector pkg. If some packages are not yet installed, they will be automatically installed by this function using install.packages.

Usage

library_install( pkg, ... )

Arguments

pkg

Vector with package names

...

Further arguments to be passed to install.packages

Examples

## Not run: 
# try to load packages PP and MCMCglmm
library_install( pkg=c("PP", "MCMCglmm") )

## End(Not run)

miceadds documentation built on May 29, 2024, 11:05 a.m.