R/library_install.R

Defines functions library_install

Documented in library_install

## File Name: library_install.R
## File Version: 0.08


#################################################
# load packages or install some packages
# if they are needed.
library_install <- function( pkg, ... ){
    PP <- length(pkg)
    for (vv in 1:PP){
        pp <- pkg[vv]
        ab1 <- do.call( what=require,
                    args=list( package=pp, quietly=TRUE ) )
        if ( ! ab1 ){
            utils::install.packages( pp, ...)
        }
        do.call( require, list( package=pp ) )
    }
}
################################################
alexanderrobitzsch/miceadds documentation built on Feb. 2, 2024, 10:21 a.m.