-
Notifications
You must be signed in to change notification settings - Fork 186
more considered handling of conditions in config parsing #2254
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2254 +/- ##
==========================================
- Coverage 99.65% 99.63% -0.02%
==========================================
Files 114 114
Lines 5215 5235 +20
==========================================
+ Hits 5197 5216 +19
- Misses 18 19 +1
|
Can we get the call that produced the warning to appear? |
Do you just want to print the string that caused the warning (in this case, it would be |
Here's what the call stack looks like from within the relevant warning handler:
Would including |
test <- dplyr::mutate(iris, okay = Sepal.Length + Sepal.Width, warny = warning("warn")) Provides a very nice warning:
|
IINM that would require hooking into the {rlang} error+stack system (which I don't know anything about). Not sure it's worth it for this use case. |
Current output from the test case in the issue:
|
BTW, |
Fine for now. "at call..." sounds awkward to me, though. |
Base R does "Error in (call): (message)". |
Sure, that works |
LGTM except for the nit in NEWS. |
Closes #2253.
The output in @Bisaloo's case now looks like this:
Open to fine-tuning it a bit but feels like we're in the right direction here.