Skip to content

nest() generic might error for unnamed dots #1134

@mgirlich

Description

@mgirlich

Before calling the method corresponding to the class the nest() generic tries to name any unnamed dots. This doesn't work for lazy tibbles:

library(dtplyr)
library(tidyr)

dt <- lazy_dt(tibble(x = c(1, 2, 1), y = c("a", "a", "b")))
dt %>% nest(y)
#> Error: `x` must be a vector, not a <dtplyr_step_first/dtplyr_step> object.

Created on 2021-07-01 by the reprex package (v2.0.0)

The issue is the following line

col_names <- names(tidyselect::eval_select(expr(c(...)), .data))

The question is how to handle this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementnesting 🐦nesting, chopping, and packing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions