You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Sam Albers (Jira)" <ji...@apache.org> on 2020/03/11 16:21:00 UTC

[jira] [Created] (ARROW-8075) Loading R.utils after arrow breaks some arrow functions

Sam Albers created ARROW-8075:
---------------------------------

             Summary: Loading R.utils after arrow breaks some arrow functions
                 Key: ARROW-8075
                 URL: https://issues.apache.org/jira/browse/ARROW-8075
             Project: Apache Arrow
          Issue Type: Bug
          Components: R
    Affects Versions: 0.16.0
         Environment: - Session info ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.6.3 (2020-02-29)
 os       Windows 10 x64              
 system   x86_64, mingw32             
 ui       RStudio                     
 language (EN)                        
 collate  English_Canada.1252         
 ctype    English_Canada.1252         
 tz       America/Los_Angeles         
 date     2020-03-11                  

- Packages --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 package     * version    date       lib source                        
 arrow       * 0.16.0.2   2020-02-14 [1] CRAN (R 3.6.2)                
 assertthat    0.2.1      2019-03-21 [1] CRAN (R 3.6.0)                
 backports     1.1.5      2019-10-02 [1] CRAN (R 3.6.1)                
 bit           1.1-15.2   2020-02-10 [1] CRAN (R 3.6.2)                
 bit64         0.9-7      2017-05-08 [1] CRAN (R 3.6.0)                
 callr         3.4.2      2020-02-12 [1] CRAN (R 3.6.2)                
 cli           2.0.2      2020-02-28 [1] CRAN (R 3.6.2)                
 crayon        1.3.4      2017-09-16 [1] CRAN (R 3.6.0)                
 desc          1.2.0      2018-05-01 [1] CRAN (R 3.6.0)                
 devtools      2.2.2      2020-02-17 [1] CRAN (R 3.6.2)                
 digest        0.6.25     2020-02-23 [1] CRAN (R 3.6.2)                
 ellipsis      0.3.0      2019-09-20 [1] CRAN (R 3.6.1)                
 fansi         0.4.1      2020-01-08 [1] CRAN (R 3.6.2)                
 fs            1.3.1      2019-05-06 [1] CRAN (R 3.6.0)                
 glue          1.3.1      2019-03-12 [1] CRAN (R 3.6.0)                
 magrittr      1.5        2014-11-22 [1] CRAN (R 3.6.0)                
 memoise       1.1.0      2017-04-21 [1] CRAN (R 3.6.0)                
 packrat       0.5.0      2018-11-14 [1] CRAN (R 3.6.0)                
 pkgbuild      1.0.6      2019-10-09 [1] CRAN (R 3.6.1)                
 pkgload       1.0.2      2018-10-29 [1] CRAN (R 3.6.0)                
 prettyunits   1.1.1      2020-01-24 [1] CRAN (R 3.6.2)                
 processx      3.4.2      2020-02-09 [1] CRAN (R 3.6.2)                
 ps            1.3.2      2020-02-13 [1] CRAN (R 3.6.2)                
 purrr         0.3.3      2019-10-18 [1] CRAN (R 3.6.1)                
 R.methodsS3 * 1.8.0      2020-02-14 [1] CRAN (R 3.6.2)                
 R.oo        * 1.23.0     2019-11-03 [1] CRAN (R 3.6.1)                
 R.utils     * 2.9.2      2019-12-08 [1] CRAN (R 3.6.1)                
 R6            2.4.1      2019-11-12 [1] CRAN (R 3.6.1)                
 Rcpp          1.0.3      2019-11-08 [1] CRAN (R 3.6.1)                
 remotes       2.1.1      2020-02-15 [1] CRAN (R 3.6.2)                
 rlang         0.4.4      2020-01-28 [1] CRAN (R 3.6.2)                
 rprojroot     1.3-2      2018-01-03 [1] CRAN (R 3.6.0)                
 rstudioapi    0.11       2020-02-07 [1] CRAN (R 3.6.2)                
 sessioninfo   1.1.1      2018-11-05 [1] CRAN (R 3.6.0)                
 testthat      2.3.1      2019-12-01 [1] CRAN (R 3.6.2)                
 tidyselect    1.0.0      2020-01-27 [1] CRAN (R 3.6.2)                
 usethis       1.5.1.9000 2020-01-31 [1] Github (r-lib/usethis@c31336d)
 vctrs         0.2.3      2020-02-20 [1] CRAN (R 3.6.2)                
 withr         2.1.2      2018-03-15 [1] CRAN (R 3.6.0)                

[1] C:/Users/salbers/R/win-library/3.6
[2] C:/Program Files/R/R-3.6.3/library
            Reporter: Sam Albers


I am writing this as an FYI because it caught me today. My hope is that maybe this will one day help solve a bug or act as a clue if/when you encounter this behaviour. I don't have any time at the moment to track exactly what is happening so unfortunately I am just sharing as is. The issue is when one loads the R.utils package after loading arrow. Again likely this is an issue related to R.utils and therefore not strictly a bug in arrow. Still thought it would be useful to share:

 
{code:java}
library(arrow)
#> 
#> Attaching package: 'arrow'
#> The following object is masked from 'package:utils':
#> 
#> timestamp
write_parquet(iris, 'iris.parquet')
pq <- ParquetFileReader$create('iris.parquet')
library(R.utils)
#> Loading required package: R.oo
#> Loading required package: R.methodsS3
#> R.methodsS3 v1.8.0 (2020-02-14 07:10:20 UTC) successfully loaded. See ?R.methodsS3 for help.
#> R.oo v1.23.0 successfully loaded. See ?R.oo for help.
#> 
#> Attaching package: 'R.oo'
#> The following object is masked from 'package:R.methodsS3':
#> 
#> throw
#> The following objects are masked from 'package:methods':
#> 
#> getClasses, getMethods
#> The following objects are masked from 'package:base':
#> 
#> attach, detach, load, save
#> R.utils v2.9.2 successfully loaded. See ?R.utils for help.
#> 
#> Attaching package: 'R.utils'
#> The following object is masked from 'package:arrow':
#> 
#> timestamp
#> The following object is masked from 'package:utils':
#> 
#> timestamp
#> The following objects are masked from 'package:base':
#> 
#> cat, commandArgs, getOption, inherits, isOpen, nullfile, parse,
#> warnings
pq <- ParquetFileReader$create('iris.parquet')
#> Error in exists(name, envir = envir, inherits = FALSE): use of NULL environment is defunct
{code}
 



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