startPkgs: startPkgs

Description Usage Arguments Examples

View source: R/General.R

Description

Loads all packages supplied by the character vector silently and quickly. Useful for invisibly starting all library requirements with less typing in the setup chunk rather than calling each library independently.

Usage

1
startPkgs(pkgs)

Arguments

pkgs

(character) Vector of package names to be loaded in the R environment

Examples

1
2
3
req.pkgs <- c("tidyverse","magrittr","dplyr")
system.time({library(tidyverse);library(magrittr);library(dplyr)})
system.time(startPkgs(req.pkgs))

yogat3ch/HDA documentation built on Sept. 13, 2019, 8:54 p.m.