[jira] [Commented] (ARROW-7789) [R] Unknown error when using arrow::write_feather()  in R 3.5.3

2020-02-27 Thread Neal Richardson (Jira)


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

Neal Richardson commented on ARROW-7789:


Thanks for the tip, [~karldw]. The problem seems to be that arrow objects share 
a base class name ("Object") that gets special methods defined in {{R.oo}} 
(https://github.com/HenrikBengtsson/R.oo/blob/develop/NAMESPACE#L171). Since 
R.oo Objects don't have the same properties as arrow Objects, calling R.oo's 
{{$<-}} method on an arrow Object does bad things. 

There are a few ways to fix this, will discuss on the PR I'm about to put up.

> [R] Unknown error when using arrow::write_feather()  in R 3.5.3
> ---
>
> Key: ARROW-7789
> URL: https://issues.apache.org/jira/browse/ARROW-7789
> Project: Apache Arrow
>  Issue Type: Bug
>  Components: R
>Reporter: Martin
>Priority: Minor
>
> Unknown error when using arrow::write_feather()  in R 3.5.3
> pb = as.data.frame(seq(1:100))
> pbFilename <- file.path(getwd(), "reproduceBug.feather")
>  arrow::write_feather(x = pb, sink = pbFilename)
> >Error in exists(name, envir = envir, inherits = FALSE) : 
>  > use of NULL environment is defunct
>  
> packageVersion('arrow')
> [1] ‘0.15.1.1’



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


[jira] [Commented] (ARROW-7789) [R] Unknown error when using arrow::write_feather()  in R 3.5.3

2020-02-26 Thread Karl Dunkle Werner (Jira)


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

Karl Dunkle Werner commented on ARROW-7789:
---

Reading hits the same issues.

> [R] Unknown error when using arrow::write_feather()  in R 3.5.3
> ---
>
> Key: ARROW-7789
> URL: https://issues.apache.org/jira/browse/ARROW-7789
> Project: Apache Arrow
>  Issue Type: Bug
>  Components: R
>Reporter: Martin
>Priority: Minor
>
> Unknown error when using arrow::write_feather()  in R 3.5.3
> pb = as.data.frame(seq(1:100))
> pbFilename <- file.path(getwd(), "reproduceBug.feather")
>  arrow::write_feather(x = pb, sink = pbFilename)
> >Error in exists(name, envir = envir, inherits = FALSE) : 
>  > use of NULL environment is defunct
>  
> packageVersion('arrow')
> [1] ‘0.15.1.1’



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


[jira] [Commented] (ARROW-7789) [R] Unknown error when using arrow::write_feather()  in R 3.5.3

2020-02-26 Thread Karl Dunkle Werner (Jira)


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

Karl Dunkle Werner commented on ARROW-7789:
---

I'm getting the same error when the R.oo package is loaded (not even attached). 
Here's a reprex:

 
{code:r}
loadNamespace("R.oo")
#> 
arrow::write_parquet(mtcars, tempfile())
#> Error in exists(name, envir = envir, inherits = FALSE): use of NULL 
environment is defunct


sessionInfo()
#> R version 3.6.1 (2019-07-05)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: Ubuntu 19.10

#> Matrix products: default
#> BLAS:   /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
#> LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.3.7.so

#> locale:
#>  [1] LC_CTYPE=en_US.UTF-8   LC_NUMERIC=C  
#>  [3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8
#>  [5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8   
#>  [7] LC_PAPER=en_US.UTF-8   LC_NAME=C 
#>  [9] LC_ADDRESS=C   LC_TELEPHONE=C
#> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C   
#> 
#> attached base packages:
#> [1] stats graphics  grDevices utils datasets  methods   base 

#> loaded via a namespace (and not attached):
#>  [1] tidyselect_1.0.0  bit_1.1-15.2  compiler_3.6.1magrittr_1.5 
#>  [5] assertthat_0.2.1  R6_2.4.1  glue_1.3.1Rcpp_1.0.3   
#>  [9] bit64_0.9-7   vctrs_0.2.3   R.methodsS3_1.8.0 arrow_0.16.0.2   
#> [13] rlang_0.4.4   R.oo_1.23.0   purrr_0.3.3  

{code}

> [R] Unknown error when using arrow::write_feather()  in R 3.5.3
> ---
>
> Key: ARROW-7789
> URL: https://issues.apache.org/jira/browse/ARROW-7789
> Project: Apache Arrow
>  Issue Type: Bug
>  Components: R
>Reporter: Martin
>Priority: Minor
>
> Unknown error when using arrow::write_feather()  in R 3.5.3
> pb = as.data.frame(seq(1:100))
> pbFilename <- file.path(getwd(), "reproduceBug.feather")
>  arrow::write_feather(x = pb, sink = pbFilename)
> >Error in exists(name, envir = envir, inherits = FALSE) : 
>  > use of NULL environment is defunct
>  
> packageVersion('arrow')
> [1] ‘0.15.1.1’



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


[jira] [Commented] (ARROW-7789) [R] Unknown error when using arrow::write_feather()  in R 3.5.3

2020-02-07 Thread Neal Richardson (Jira)


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

Neal Richardson commented on ARROW-7789:


This works on my machine (macOS 10.14, R 3.6.2, latest arrow on master branch). 
Could you:

1. Try installing a development version of the package and retry? See 
http://arrow.apache.org/docs/r/#installing-a-development-version
2. If it is still erroring for you, could you include a {{traceback()}} of the 
error and your {{sessionInfo()}}?

> [R] Unknown error when using arrow::write_feather()  in R 3.5.3
> ---
>
> Key: ARROW-7789
> URL: https://issues.apache.org/jira/browse/ARROW-7789
> Project: Apache Arrow
>  Issue Type: Bug
>  Components: R
>Reporter: Martin
>Priority: Minor
>
> Unknown error when using arrow::write_feather()  in R 3.5.3
> pb = as.data.frame(seq(1:100))
> pbFilename <- file.path(getwd(), "reproduceBug.feather")
>  arrow::write_feather(x = pb, sink = pbFilename)
> >Error in exists(name, envir = envir, inherits = FALSE) : 
>  > use of NULL environment is defunct
>  
> packageVersion('arrow')
> [1] ‘0.15.1.1’



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