-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide more informative/helpful condition messages in Abort, Warn(, Inform?) #78
Comments
It looks like using
Some more investigation is likely required when dealing with
|
Current work left:
|
(@dsweber2 the |
hard to answer, there's a lot in here. I guess we just hadn't gotten to this in the triage? Is the list of todos in the actual PR the only thing that's preventing this from getting merged? |
rlang
conditions allow us to assign custom classes (allowing selective filtering), pack in relevant information within the condition object, and provide more informative traces thantraceback
. However, some of this functionality is not at all obvious forabort
, and most/all of it is not obvious or activated forwarn
andinform
. Plus, packing information inside the object rather than the message may actually obscurewarn
andinform
and require an extra step forabort
without some duplication inside the main message.Help users unfamiliar with
rlang
conditions by:warn
andinform
when they aren't available by default (on some/all R distributions) (requiringglobal_entrace()
first instead). Try this usinginform
with a.frequency
.Abort
,Warn
, to package in some informative objects that should be printed, and others whose names should be listed, placing them either with appropriate package-name prefixes as condition fields, or as a list condition field.Inform
function.Abort
", usingcall
parameter.init
to adjust the wrapping based on the actual prefixes used byrlang
, e.g., "! " forabort
. (Might need to know ifglobal_entrace
is active)recover
; look into what happened with this Issue.The text was updated successfully, but these errors were encountered: