-
Notifications
You must be signed in to change notification settings - Fork 418
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorpivoting ♻️pivot rectangular data to different "shapes"pivot rectangular data to different "shapes"
Milestone
Description
On tidyr 0.8.3, tidyr::crossing
and tidyr::nesting
used tibble::lst
to capture dots, and supported lazy evaluation of arguments.
On tidyr 1.0.0, they use tidyr:::dots_cols
, and no more support lazy evaluation.
Is this intended or unexpected?
tidyr 1.0.0
tidyr::crossing(x = seq(-2, 2), y = x)
#> Error in .f(.x[[i]], ...): object 'x' not found
tidyr 0.8.3
tidyr::crossing(x = seq(-2, 2), y = x)
#> Loading tidyr
#> # A tibble: 25 x 2
#> x y
#> <int> <int>
#> 1 -2 -2
#> 2 -2 -1
#> 3 -2 0
#> 4 -2 1
#> 5 -2 2
#> 6 -1 -2
#> 7 -1 -1
#> 8 -1 0
#> 9 -1 1
#> 10 -1 2
#> # ... with 15 more rows
heavywatal
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorpivoting ♻️pivot rectangular data to different "shapes"pivot rectangular data to different "shapes"