Check for package and load if found

load_pkgs(packages, quietly=F)

Arguments

packages

vector list of packages to install

Examples

load_pkgs(c("dplyr", "ggplot2", "tm"))
#> Loading required package: tm
#> Loading required package: NLP
#> #> Attaching package: 'NLP'
#> The following object is masked from 'package:ggplot2': #> #> annotate
#> [1] "tm" "NLP" "gee" "DT" "haven" #> [6] "data.table" "Scotty" "testthat" "lubridate" "forcats" #> [11] "stringr" "dplyr" "purrr" "readr" "tidyr" #> [16] "tibble" "ggplot2" "tidyverse" "stats" "graphics" #> [21] "grDevices" "utils" "datasets" "methods" "base"