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.
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!
So that the error from
So that changes in https://github.com/r-lib/rlang/pull/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!