Hey all, this is more a general R question than Rstudio, but I'm trying to figure out if a function exists (in base R or a package) that will automate package installation, given a DESCRIPTION file.
What I mean is something like
pip install -r requirements.txt -c constraints.txt for Python, or Julia's
]instantiate. Starting from a barebones R install, this
instantiate("./DESCRIPTION") or whatever would automatically install everything in Depends: and Imports:, have a flag to also install Suggests:, and would take care of getting the versions right (both > and <) where specified.
I've been searching for a while now and haven't found anything, but the terms are so general I'm not sure if I might have just missed it.