Skip to content

Get package info for packages in a specific library #88

@nbenn

Description

@nbenn

In a setting where I have two package libraries, one with sessioninfo (and its dependencies) installed (A) and another (B) with an arbitrary set of packages installed (which might include some packages that are also included in A, but potentially in differing versions), I would now like to run sessioninfo::package_info(pkgs = "installed") but only on library B.

This distinction between "host" library (A) and "client" library (B) currently is unsupported because lib.loc passed on to utils::packageDescription() is fixed to .libPaths() in

desc <- lapply(pkgs$package, pkg_desc, lib.loc = .libPaths())

Would you be open to maybe exposing this as an argument to sessioninfo::package_info()? Or is this besides the point for what sessioninfo is intended to provide? This might also require some thought as to what this means exactly for pkgs != "installed", and flags "P" and "V".

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementtidy-dev-day 🤓Tidyverse Developer Day rstd.io/tidy-dev-day

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions