data-raw/fns/force.R

force_instl_of_reqd_pkg <- function(package_nm_1L_chr){
  if(!package_nm_1L_chr %in% installed.packages()){
    install.packages(package_nm_1L_chr,
                     Sys.getenv("R_LIBS_USER"),
                     repos="https://cran.ms.unimelb.edu.au/")
  }
  library(package_nm_1L_chr,
          character.only=TRUE
  )
}
readyforwhatsnext/ready4fun documentation built on Nov. 22, 2020, 9:28 p.m.