-
Notifications
You must be signed in to change notification settings - Fork 89
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
better call routing for errors #1214
Conversation
After this one, I'll have a corresponding (but trivial) extratests PR ☝️ . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HECK YEAH
R/condense_control.R
Outdated
"Object of class {.cls class(x)[1]} cannot be coerced to | ||
object of class {.cls class(ref)[1]}.", | ||
"Object of class {.cls {class(x)[1]}} cannot be coerced to | ||
object of class {.cls {class(ref)[1]}}.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even better, I changed it to {.obj_type_friendly {x}}
@@ -258,7 +258,7 @@ make_form_call <- function(object, env = NULL) { | |||
} | |||
|
|||
# TODO we need something to indicate that case weights are being used. | |||
make_xy_call <- function(object, target, env) { | |||
make_xy_call <- function(object, target, env, call = rlang::caller_env()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll just make this comment once to apply throughout the PR, but rlang is imported with @import rlang
so we don't need to namespace rlang for these!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It all comes back to psock... we started namespacing everything in these packages because importing was not enough.
Co-authored-by: Simon P. Couch <[email protected]>
Co-authored-by: ‘topepo’ <‘[email protected]’>
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Focuses on functions called by user-facing functions.
A few more message conversions enabled us to remove glue from depends.
Also removed an unused function for bartMachine (which we don't support)