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

1

Arguments

pkg

Vector with package names

...

Further arguments to be passed to install.packages

Author(s)

Alexander Robitzsch

Examples

1
2
3
4
5
## Not run: 
# try to load packages PP and MCMCglmm
library_install( pkg =  c("PP" , "MCMCglmm") )   

## End(Not run)	

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.