You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Romain Francois (Jira)" <ji...@apache.org> on 2021/06/28 14:12:00 UTC

[jira] [Commented] (ARROW-13195) [R] Problem with rlang reverse dependency checks

    [ https://issues.apache.org/jira/browse/ARROW-13195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17370612#comment-17370612 ] 

Romain Francois commented on ARROW-13195:
-----------------------------------------

I could reproduce with cran `arrow` : 

 

``` r
library(arrow, warn.conflicts = FALSE)
library(dplyr, warn.conflicts = FALSE)
library(rlang)
#> 
#> Attaching package: 'rlang'
#> The following object is masked from 'package:arrow':
#> 
#> string

tbl <- tibble::tibble(
 chr = letters[c(1:5, NA, 7:10)]
)
mask <- new_data_mask(env(input = record_batch(tbl)))
expr <- quo(input %>% group_by(chr) %>% select() %>% collect())
eval_tidy(expr, mask)
#> Error: Can't subset `.data` outside of a data mask context.
```

 

but it appears to be fixed on dev. It was an issue with `ensure_group_vars()` : https://github.com/cran/arrow/blob/29aca94a7f9fdff267d58e63c34b1b9ab1c031c0/R/dplyr.R#L728

 

> [R] Problem with rlang reverse dependency checks
> ------------------------------------------------
>
>                 Key: ARROW-13195
>                 URL: https://issues.apache.org/jira/browse/ARROW-13195
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>            Reporter: Romain Francois
>            Priority: Major
>
> From: https://github.com/r-lib/rlang/blob/master/revdep/problems.md#arrow
>  
> arrow
> <details>
> * Version: 4.0.1
> * GitHub: https://github.com/apache/arrow
> * Source code: https://github.com/cran/arrow
> * Date/Publication: 2021-05-28 09:50:02 UTC
> * Number of recursive dependencies: 61
> Run `cloud_details(, "arrow")` for more info
> </details>
> ## Newly broken
> * checking tests ... ERROR
>  ```
>  Running ‘testthat.R’
>  Running the tests in ‘tests/testthat.R’ failed.
>  Last 13 lines of output:
>  1. ├─arrow:::expect_dplyr_equal(...) test-dplyr.R:96:2
>  2. │ └─rlang::eval_tidy(expr, rlang::new_data_mask(rlang::env(input = record_batch(tbl)))) helper-expectation.R:79:4
>  3. ├─input %>% group_by(chr) %>% select() %>% collect()
>  4. ├─dplyr::collect(.)
>  5. └─arrow:::collect.arrow_dplyr_query(.)
>  6. └─arrow:::ensure_group_vars(x)
>  7. ├─arrow:::make_field_refs(gv, dataset = query_on_dataset(.data))
>  8. └─arrow:::query_on_dataset(.data)
>  9. ├─x$.data
>  10. └─rlang:::`$.rlang_fake_data_pronoun`(x, ".data")
>  11. └─rlang:::stop_fake_data_subset()
>  
>  [ FAIL 2 | WARN 0 | SKIP 60 | PASS 3778 ]
>  Error: Test failures
>  Execution halted
>  ```
> ## In both
>  * checking installed package size ... NOTE
>  ```
>  installed size is 58.8Mb
>  sub-directories of 1Mb or more:
>  R 3.6Mb
>  libs 54.5Mb
>  ```
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)