Skip to content
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

More precise error messages for mutate() et al. #3128

Closed
krlmlr opened this issue Sep 27, 2017 · 2 comments
Closed

More precise error messages for mutate() et al. #3128

krlmlr opened this issue Sep 27, 2017 · 2 comments
Labels
feature a feature request or enhancement

Comments

@krlmlr
Copy link
Member

krlmlr commented Sep 27, 2017

When propagating an error from the R interpreter, we should mention specifically what caused the error, because the messages may not be very helpful, as in this SO example where the cause is a mistyped column name but error is simply:

Error in mutate_impl(.data, dots): cannot coerce type 'closure' to vector of type 'double'

Instead, the error message should be more like:

Error: mutate(..., id = as.numeric(id)) cannot be evaluated, cannot coerce type 'closure' to vector of type 'double'
@krlmlr krlmlr added data frame feature a feature request or enhancement labels Sep 27, 2017
@romainfrancois
Copy link
Member

duplicate of #3510

@lock
Copy link

lock bot commented Nov 25, 2018

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Nov 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants