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

Use recent important-standalone-types check #1931

Open
olivroy opened this issue Apr 29, 2024 · 0 comments
Open

Use recent important-standalone-types check #1931

olivroy opened this issue Apr 29, 2024 · 0 comments

Comments

@olivroy
Copy link

olivroy commented Apr 29, 2024

So that the error from

mtcars2 <- dplyr::as_tibble(mtcars)
mtcars2 |> dplyr::as_tibble() |> dplyr::select(mtcars2)
# currently
Error in `select()`:
! Can't select columns with `mtcars2`.
<error/vctrs_error_subscript_type>
✖ `mtcars2` must be numeric or character, not a <tbl_df/tbl/data.frame> object.
# desired

✖ `mtcars` must be numeric or character, not a tibble.

So that changes in r-lib/rlang#1622 are reflected.

This reprex may seem silly, but I sometimes have object names that have similar names as variable names, and autocomplete may confuse me. So a shorter error message would be useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant