r-lib / rray

Simple Arrays
https://rray.r-lib.org
GNU General Public License v3.0
130 stars 12 forks source link

`as_rray()` returns frozen console in RStudio #266

Open eliocamp opened 2 years ago

eliocamp commented 2 years ago

I have a relatively big array and when converting to a rray, as_rray() gives up console control almost immediately (> in the console, no red STOP in RStudio) but it's in a frozen state.

Reprex:

library(rray)
array <- array(rnorm(24*2*25*165*128), dim = c(128, 24, 2, 25, 165))
rray <- as_rray(array)

https://user-images.githubusercontent.com/8617595/146784352-c7079f6a-b0a7-45e5-b0d6-252e242bd623.mp4

Run in an interactive session and right after the last line, try to run any R code.

This also seems to happen with other functions, for example.

rraymean <- rray_mean(rray, axes = 1)
anom <- rray - rraymean                      

The last line will similarly freeze the console.

This only happens in RStudio, though. Running this in the R console works fine.

I'd guess that rray is computing stuff but somehow not communicating this to the R session?

eliocamp commented 2 years ago

Well, this is so weird. This strange behaviour only happens if I install the package remotely. I forked the repo to work on other things and if I either load the package with devtools::load_all() or install it with devtools::install(), then as_rray() works well.

DavisVaughan commented 2 years ago

FYI, rray is currently archived on CRAN and is not currently being developed. I hope to come back to this in the future, but it requires a complete rewrite and we don't currently have the resources to provide any support for rray at the current moment

eliocamp commented 2 years ago

OH, that's a bummer. I noticed it wasn't on CRAN but didn't know that it was abandoned. Sorry for the issues, then :)