R Utilities: Loading a Package or Installation of a Package if Necessary — library_install" />
library_install.Rd
Loads packages specified in vector pkg
. If some packages are not
yet installed, they will be automatically installed by this function using
install.packages
.
library_install( pkg, ... )
pkg | Vector with package names |
---|---|
... | Further arguments to be passed to
|
if (FALSE) { # try to load packages PP and MCMCglmm library_install( pkg=c("PP", "MCMCglmm") ) }