rstudio / packrat

Packrat is a dependency management system for R
http://rstudio.github.io/packrat/
401 stars 89 forks source link

Enhance library call detection #663

Closed JsizzleR closed 2 years ago

JsizzleR commented 2 years ago

A customer requested the ability to load packages through a function, without bypassing the package detection. For example:

libraries <- c("tidyverse","knitr","kableExtra","scales","DBI","RODBC","lubridate", "dplyr","DT","readxl","xlsx","skimr","rlang")
sapply(libraries, require, character.only = TRUE)

Thanks for considering!

Request ID: 72985

aronatkins commented 2 years ago

Some patterns (such as approaches that use xfun or pacman) are detected, but this style will probably not be supported.

In general, we recommend multiple require statements.