markfairbanks / tidytable

Tidy interface to 'data.table'
https://markfairbanks.github.io/tidytable/
Other
450 stars 32 forks source link

Allow `.env` usage in `arrange.()` #519

Closed markfairbanks closed 2 years ago

markfairbanks commented 2 years ago
pacman::p_load(tidytable)

df <- tidytable(x = 1:3)

y <- 1

df %>%
  arrange.(x + .env$y)
#> Error: Can't subset `.data` outside of a data mask context.