Using vars_pullas in tidyr to get the same error. Prior to this PR the behavior was to select the first of the columns provided.
library(tidyr, warn.conflicts = FALSE)
library(data.table, warn.conflicts = FALSE)
devtools::load_all("/Users/mbp/Documents/GitHub/dtp")
#> ℹ Loading dtplyr
#> Warning: package 'dplyr' was built under R version 4.1.2
dt <- lazy_dt(tibble(x = c("a_a", "b_b", "c_c"), y = x))
dt %>%
separate(c(x, y), into = c("left", "right"))
#> Error in `pull_as_location2()`:
#> ! Must extract column with a single valid subscript.
#> ✖ Subscript `var` has size 2 but must be size 1.
dt %>%
as_tibble() %>%
separate(c(x, y), into = c("left", "right"))
#> Error in `pull_as_location2()`:
#> ! Must extract column with a single valid subscript.
#> ✖ Subscript `var` has size 2 but must be size 1.
Using
vars_pull
as in tidyr to get the same error. Prior to this PR the behavior was to select the first of the columns provided.Created on 2022-06-17 by the reprex package (v2.0.1)