Skip to content
Prev 9691 / 12125 Next

[R-pkg-devel] Question regarding listing base and recommended packages programmatically and efficiently

On Thu, 12 Oct 2023 11:32:24 -0400
Mikael Jagan <jaganmn2 at gmail.com> wrote:

            
tools:::.get_standard_package_names does that at package installation
time, but it's still not public API.

A call to installed.packages() may take a long while because it has to
list files in every library (some of which can be large and/or
network-mounted) and parse each Meta/package.rds file, but at least
list.files() is faster than that.

If I had to make a choice at this point, I would hard-code the list of
packages, but a better option may surface once we know what Tony needs
the package lists for.