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
Now, first, remember that prex() is unexported precisely because it creates leakage between your current R session and your (re)prex. So in general, prex() users have to take the bad with the good.
But we could try harder to leave certain things the way we found them.
Consider these options, which we inject into to-be-(re)prexed code:
prex() could note the original values of keep.source, rlang_backtrace_on_error_report, and crayon.enabled and make a point of scheduling their restoration.
The text was updated successfully, but these errors were encountered:
Now, first, remember that
prex()
is unexported precisely because it creates leakage between your current R session and your (re)prex. So in general,prex()
users have to take the bad with the good.But we could try harder to leave certain things the way we found them.
Consider these options, which we inject into to-be-(re)prexed code:
reprex/R/reprex_document.R
Lines 131 to 141 in 318363c
prex()
could note the original values ofkeep.source
,rlang_backtrace_on_error_report
, andcrayon.enabled
and make a point of scheduling their restoration.The text was updated successfully, but these errors were encountered: