activityinfo-R icon indicating copy to clipboard operation
activityinfo-R copied to clipboard

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

Open nickdickinson opened this issue 2 years ago • 0 comments

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.

nickdickinson avatar Apr 13 '23 08:04 nickdickinson