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 the new "select"
and "relocate"
subscript actions
#300
Use the new "select"
and "relocate"
subscript actions
#300
Conversation
@@ -1,6 +1,4 @@ | |||
with_subscript_errors <- function(expr, | |||
type = "select", | |||
call = 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.
You didn't use the call
here so I've removed it
(expect_error(relocate_loc(x, a, before = c))) | ||
Output | ||
<error/vctrs_error_subscript_oob> | ||
Error in `relocate_loc()`: | ||
! Can't subset columns that don't exist. | ||
! Can't select columns that don't exist. | ||
x Column `c` doesn't exist. |
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 think this is good enough for OOB errors in before
and after
Error in `vec_as_location2_result()`: | ||
Error: |
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.
Improvements from over on the vctrs side
98600e9
to
7543d2b
Compare
dbff421
to
a4e4c51
Compare
Closes #271
Requires r-lib/vctrs#1619 (I'll merge that first and then update here)
Note that this means tidyselect now relies on dev vctrs.