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
library(pointblank)
df<-tibble::tibble(
id.x=1:3,
id.y=1:3,
stuff=1:3
)
df|>
expect_col_exists(
columns= vars(ends_with(".x"))
)
#> Error in vapply(columns, FUN.VALUE = character(1), USE.NAMES = FALSE, : values must be length 1,#> but FUN(X[[1]]) result is length 2df|>
col_exists(
columns= vars(ends_with(".x"))
)
#> Error in vapply(columns, FUN.VALUE = character(1), USE.NAMES = FALSE, : values must be length 1,#> but FUN(X[[1]]) result is length 2
Prework
Description
Using
ends_with()
throws an error message insideexpect_col_exists()
andcol_exists()
.Reproducible example
Created on 2022-09-22 with reprex v2.0.2
Expected result
This should run without error — tidyselect helpers should work with
expect_col_exists()
andcol_exists()
.Session info
The text was updated successfully, but these errors were encountered: