Description Usage Arguments Examples
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.
1 | startPkgs(pkgs)
|
pkgs |
|
1 2 3 | req.pkgs <- c("tidyverse","magrittr","dplyr")
system.time({library(tidyverse);library(magrittr);library(dplyr)})
system.time(startPkgs(req.pkgs))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.