load packages from a char separated by space or commas

ll(char, print = FALSE, ...)

Arguments

char

character with package named

print

if TRUE, will return a string that can be pasted in the console

...

additional parameters

Examples

sto::ll("rvest stringr dplyr")
#> 
#> Attaching package: ‘dplyr’
#> The following object is masked from ‘package:testthat’:
#> 
#>     matches
#> The following objects are masked from ‘package:stats’:
#> 
#>     filter, lag
#> The following objects are masked from ‘package:base’:
#> 
#>     intersect, setdiff, setequal, union
#> [[1]]
#>  [1] "rvest"     "sto"       "testthat"  "magrittr"  "nvimcom"   "stats"    
#>  [7] "graphics"  "grDevices" "utils"     "datasets"  "methods"   "base"     
#> 
#> [[2]]
#>  [1] "stringr"   "rvest"     "sto"       "testthat"  "magrittr"  "nvimcom"  
#>  [7] "stats"     "graphics"  "grDevices" "utils"     "datasets"  "methods"  
#> [13] "base"     
#> 
#> [[3]]
#>  [1] "dplyr"     "stringr"   "rvest"     "sto"       "testthat"  "magrittr" 
#>  [7] "nvimcom"   "stats"     "graphics"  "grDevices" "utils"     "datasets" 
#> [13] "methods"   "base"     
#> 
sto::ll("rvest stringr dplyr", print=TRUE)
#> library(rvest)
#> library(stringr)
#> library(dplyr)