Could admiral have a "verbose" mode where useful info is printed to the log after each function run? #2418
Replies: 7 comments 17 replies
-
That seems like a lot of work!! Are folks asking for SAS-like log at Roche? Would a print method be better? ...or could we just show how to use message() and warning() to output things like this to the log if folks want this level of detail? |
Beta Was this translation helpful? Give feedback.
-
I see two use cases where users could benefit from more information:
Some thoughts/questions:
|
Beta Was this translation helpful? Give feedback.
-
I wouldn't suggest adding SAS-like logging in admiral. It will be A LOT of work to add it and even more to maintain. I get the same alarm bells as @bms63 When we're in running in batch and things go wrong, I would hope the error messaging is clear what went wrong. In cases when it's not clear, let's improve that messaging. Of course checking our results after derivations is incredibly important. Rather than relying on a verbose SAS-like log, perhaps we can brainstorm other avenues that accomplish a similar goal of of transparency and results checking. We could perhaps instead pilot a few functions outside of admiral for comparing data frames before and after derivations. It could print a few key pieces of information:
These are just a few thoughts and something we could do to modernize a log and functionalize it. |
Beta Was this translation helpful? Give feedback.
-
What should be the purpose of the log? |
Beta Was this translation helpful? Give feedback.
-
Thanks everyone for your inputs! In summary, it looks like the answer to the discussion question "Could admiral have a "verbose" mode where useful info is printed to the log after each function run?" seems to be "Maybe, but it would be very hard to implement and upkeep and it is unclear if the added benefit is worth it" 😆 . Maybe for the next release of the package we can try brainstorm key thoughts from this discussion to identify where to provide targeted solutions, rather than go for a full SAS-style log approach to answer any questions. Ie, maybe it would be best to provide tips for users for how to check the status of datasets, as @rossfarrugia suggests, and/or explore how to integrate tools like diffdf in the workflow, similar to @ddsjoberg 's points. |
Beta Was this translation helpful? Give feedback.
-
I was thinking of an additional function, a wrapper around diffdf and logrx
or something, that you could just pipe into and then compares the original
dataset to the output dataset. Would something like this work?
…On Tue, May 7, 2024 at 2:28 PM Edoardo Mancini ***@***.***> wrote:
Thanks everyone for your inputs! In summary, it looks like the answer to
the discussion question *"Could admiral have a "verbose" mode where
useful info is printed to the log after each function run?"* seems to be *"Maybe,
but it would be very hard to implement and upkeep and it is unclear if the
added benefit is worth it"* 😆 .
Maybe for the next release of the package we can try brainstorm key
thoughts from this discussion to identify where to provide targeted
solutions, rather than go for a full SAS-style log approach to answer any
questions. Ie, maybe it would be best to provide tips for users for how to
check the status of datasets, as @rossfarrugia
<https://github.com/rossfarrugia> suggests, and/or explore how to
integrate tools like diffdf in the workflow, similar to @ddsjoberg
<https://github.com/ddsjoberg> 's points.
—
Reply to this email directly, view it on GitHub
<#2418 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJUWWEUFJ3OW2RAY3KW2SFTZBDCFBAVCNFSM6AAAAABGWVFIZCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGNBRGE2DA>
.
You are receiving this because you are on a team that was mentioned.Message
ID: ***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Update: at today's {admiral} meeting @aefranklin from {roak} gave a super interesting demo showcasing how {roak} tackles messaging. Some notes from the demo and ensuing discussion (anyone feel free to add more):
|
Beta Was this translation helpful? Give feedback.
-
One possible example
After running something like:
We could print out:
<dataset_name> has xxx rows and yyy columns
or even more detailed:
<dataset_name> has xxx new rows and yyy new columns
We could even include more info about new PARAMCDs that have been derived.
Thoughts/Questions/Comments
@pharmaverse/admiral Thoughts? Is it too much of a blue sky thought? @pharmaverse/admiral_comm would this be a useful addition
Beta Was this translation helpful? Give feedback.
All reactions