[ 
https://issues.apache.org/jira/browse/ARROW-14168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jonathan Keane resolved ARROW-14168.
------------------------------------
    Fix Version/s: 8.0.0
       Resolution: Fixed

Issue resolved by pull request 12867
[https://github.com/apache/arrow/pull/12867]

> [R] Warn only once about arrow function differences
> ---------------------------------------------------
>
>                 Key: ARROW-14168
>                 URL: https://issues.apache.org/jira/browse/ARROW-14168
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>            Reporter: Neal Richardson
>            Assignee: Edward Visel
>            Priority: Major
>              Labels: good-first-issue, pull-request-available
>             Fix For: 8.0.0
>
>          Time Spent: 6h 50m
>  Remaining Estimate: 0h
>
> When someone calls median or quantile, we warn them that it is approximate. 
> When a session is interactive, this happens only the first time in 
> interactive sessions for {{median}} and {{quantile}} 
> https://github.com/apache/arrow/blob/d197ad31c3d7c16ecee74cb76a71ce397e905b3b/r/R/dplyr-summarize.R#L107-L111
> But when we test, the session is not interactive so we get a number of 
> spurious extra warnings. Because of this we set a local testthat edition 
> https://github.com/apache/arrow/blob/d197ad31c3d7c16ecee74cb76a71ce397e905b3b/r/tests/testthat/test-dplyr-summarize.R#L299-L301
>  which swallows any extra warnings.
> We can either only warn once regardless of interactivity (which is probably 
> totally fine for these warnings), or we could use something like 
> {{local_interactive}} in these tests so that we only get the first warning 
> https://rlang.r-lib.org/reference/is_interactive.html
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to