Ian Cook created ARROW-12282:
--------------------------------
Summary: [R] Refactor collect and compute methods
Key: ARROW-12282
URL: https://issues.apache.org/jira/browse/ARROW-12282
Project: Apache Arrow
Issue Type: Improvement
Components: R
Reporter: Ian Cook
ARROW-11754 added a {{compute()}} method which calls {{collect(as_data_frame =
FALSE)}}. This was a clean and simple way to add {{compute()}}, but it would be
more logical if {{collect()}} instead called {{compute()}}, or if both called
an internal function that forced computation of the lazy ops. But this is
complicated by the need to call {{restore_dplyr_features()}} in both
{{compute()}} and {{collect()}} and muddied by some uncertainty about where
exactly {{ensure_group_vars()}} and {{ensure_arrange_vars()}} should be called.
Take a closer look at this later date and consider whether to refactor it.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)