bedatadriven / activityinfo-R

ActivityInfo R Language Client
https://www.activityinfo.org/support/docs/R/
17 stars 12 forks source link

arrange() should automatically collect() and if applied after a window function has been applied #89

Open nickdickinson opened 1 year ago

nickdickinson commented 1 year ago

This will cause an error:

getRecords("ceam1x8kq6ikcujg") %>% filter(`Sector Name`=="Nutrition") %>% slice_head(n=2) %>% arrange(`Organization Name`)

It should be sufficient to add a check to make sure arrange is not applied after a slice_* function by checking if the remote data object has any window defined.