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
Adds a suggestion to use scale_x_date() instead of scale_x_datetime()
This is more helpful for the specific example in issue tidyverse#3533 but may be
misleading if the error is triggered in another way.
I could submit this as a pull request but not sure what the developers think of the solution? My main concern is that if the error occurs for some other reason then the new message won't be appropriate.
The following code yields an error message
The error is:
The reason is that we are using the wrong scale function. We should be using
scale_x_date
instead ofscale_x_datetime
.A "suggestion flavored" error message would help the user understand and fix the issue. E.g.:
The text was updated successfully, but these errors were encountered: