You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
Adapt the write_log() function so that it properly adapts to the result of interactive(). If interactive() == TRUE, messages should be sent to the console so the user sees them immediately. If interactive() == FALSE, e.g. when running on TM website, messages should be sent to the appropriate log file. Then all warning(), print(), and similar commands should be converted to use write_log() instead.
I'm very hesitant to add any new dependencies unless there's an extremely good reason and the needed utility can not be easily achieved without it. I just went through an enormous amount of work pruning as many dependencies as possible. It makes a significant difference especially in the build time, run time, test time, file size, maintenance, etc. of the docker image for TM.
Adapt the
write_log()
function so that it properly adapts to the result ofinteractive()
. Ifinteractive() == TRUE
, messages should be sent to the console so the user sees them immediately. Ifinteractive() == FALSE
, e.g. when running on TM website, messages should be sent to the appropriate log file. Then allwarning()
,print()
, and similar commands should be converted to usewrite_log()
instead.fyi @AlexAxthelm
The text was updated successfully, but these errors were encountered: