-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ff() fails when the product of dim is too large to cast to an integer #3
Comments
hit similar problem here, ary = array(1.0, dim=c(288,4076,7,54))
f = as.ff(ary) # this is ok but convert back r = as.ram(f) got
using |
I got a similar issue here too.
|
I got the same problem too. For modern day computers, having a limit of 2147483647 elements is frustrating as a matrix of ~23 GB in R will well exceed the limit. According to https://search.r-project.org/CRAN/refmans/ff/html/LimWarn.html, the C++ backend is ready for larger limit. Hope the developer can extend the limit soon. |
Same issue here - isn't there a way to overcome this? @agrueneberg @terjekv @truecluster would it be possible to just make a check what is the system RAM and adjust accordingly? Or to change it to the maximum number of elements which can be handled overall? There are many systems with more than 23GB RAM available these days. If you need help with the implementation, just let me know and I'll take care of it. |
similar problems |
Greetings!
I'm attempting to use
ff()
via thebigcor()
function in https://github.com/anspiess/propagate.When the input matrix size exceeds a certain limit, however, ff() fails with an error:
I tracked down the issue to ff.R:2465:
When
dim
is too large (in my case, ~4.65e4 or larger), the product of the dimensions is too large, leading to anNA
value after being cast withas.integer()
:Do you know if there is any way around this?
Otherwise, perhaps it would be worth performing a check against this early on and letting the user know that
ff()
cannot proceed?Related downstream issue: anspiess/propagate#4
System Information
Cheers,
Keith
The text was updated successfully, but these errors were encountered: