1 2 3 4 5 6 7 8
| library(pipeR) library_mul <- function(..., lib.loc = NULL, quietly = FALSE, warn.conflicts = TRUE){ pkgs <- as.list(substitute(list(...))) %>>% sapply(as.character) %>>% setdiff("list") if (any(!pkgs %in% installed.packages())) install.packeges(pkgs[!pkgs %in% installed.packages()]) sapply(pkgs, library, character.only = TRUE, lib.loc = lib.loc, quietly = quietly) %>>% invisible } library_mul(httr, pipeR, data.table)
|