-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Get package info for packages in a specific library #88
Comments
We can have a The question is whether this breaks the cases where a dependency is not available in the prescribed |
I started putting something together that does exactly this: main...nbenn:sessioninfo:main However what you're pointing out is exactly the issue that comes next: "session info" is about how package library/ies behave under the current session. What I am ultimately after is something slightly different: "what would Maybe (if you're interested) I should back up a step. And if not, I understand: this might move away from what sessioninfo is about. In a CI/CD setting I recently ran into the a situation where I had conflicting package requirements between the set of packages responsible for "running" the CI/CD workflow than for the "content" itself. Such a conflict, in principle, could be resolved by setting up two libraries, one for all packages that are used in CI/CD and one for the dependencies of the package being checked. For a step involving Looking at other packages typically involved in such a workflow, I started with sessioninfo. But with current capabilities I could not make it work in the way of rcmdcheck. Separating out the code that needs to be run in the "child" process (a couple of calls to base functions) from the code responsible for presentation, wich is the part that comes with dependencies (such as cli) seems straightforward. Maybe, for turning on this behavior, |
Can you share some details? |
Reviewing as part of tidy-dev-day: I think what you want here is |
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 runsessioninfo::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 toutils::packageDescription()
is fixed to.libPaths()
insessioninfo/R/package-info.R
Line 63 in ec1ebd1
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 forpkgs != "installed"
, and flags "P" and "V".The text was updated successfully, but these errors were encountered: