Is there a way to get sessionInfo() for all packages used? #676
Replies: 3 comments 1 reply
-
I see what you are saying, though I do not have plans to build anything special for this. One idea is to have an R Markdown that sources the script produced by |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info. I didn't think that it would be a good fit for the base Thanks for the I have another thought that could possibly be of general interest for For the hooks, the way that I'd like it to look would be something like (I'm guessing that this is how
And, I'm thinking that having a hook at one or more of the spots here could enable some deeper modifications. For this example, if there were a possibility to have a step 5b with a hook, I could run and save the |
Beta Was this translation helpful? Give feedback.
-
Not supporting the above definition of hooks makes sense. Thanks for the pointer to Thank you as always for your good work and your quick answers! |
Beta Was this translation helpful? Give feedback.
-
I'm starting to really get into
targets
, and I really like its design and implementation!Question: Is there a built-in way to get complete
sessionInfo()
for all targets?Thoughts:
I often use
targets
(and previously useddrake
) to generate reports built upon time-intensive analysis. To enhance reproducibility, I always put thesessionInfo()
at the bottom of the report. Withdrake
, since all packages were always loaded,sessionInfo()
reported all of the packages. One thing that I like abouttargets
is that I can load packages specifically for one target but not for others. That helps a lot with preventing function name collisions. But withtargets
, I don't see a way to get a completesessionInfo()
.I could imagine doing something like creating a new
targetopia
target-generator that would do something like create a newname_session
target with the sole purpose of collecting thesessionInfo()
, but before going down that route, I wanted to see if I were missing something where I could get thesessionInfo()
for all targets through an existing mechanism.Below is an example of how, as expected,
nlme
does not show up in thesessionInfo()
.Created on 2021-10-27 by the reprex package (v2.0.1)
Beta Was this translation helpful? Give feedback.
All reactions