R/Librarian.R

Defines functions Librarian

Documented in Librarian

#' Load multiple packages with one command
#'
#' @param pkgs A character vector of package names. 
#' @details The \code{Librarian} function loads the packages named in \code{pkgs}.  
#' @author Jonah Gabry <[email protected]@columbia.edu>
#' @seealso \code{\link[base]{library}}
#' @export
#' @examples
#' my.packages <- c("car", "foreign")
#' Librarian(my.packages)

Librarian <- function(pkgs){  
  invisible(lapply(
    X = pkgs, 
    FUN = require, 
    character.only = TRUE
  ))
}
jgabry/QMSS_package documentation built on May 17, 2017, 7:22 p.m.