Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign uprio::import cannot load matlab file? #216
Comments
leeper
added
bug
question
and removed
bug
labels
Sep 5, 2019
This comment has been minimized.
This comment has been minimized.
Thanks. I'll investigate. |
This comment has been minimized.
This comment has been minimized.
This appears to be due to the underying matlab library that rio uses (which is rmatio, rather than R.matlab). On my machine it definitely hangs and runs much more slowly than R.matlab, but it does execute successfully: > system.time(x <- R.matlab::readMat("http://ufldl.stanford.edu/housenumbers/test_32x32.mat"))
Registered S3 method overwritten by 'R.oo':
method from
throw.default R.methodsS3
user system elapsed
7.65 2.25 27.08
> system.time(x <- rmatio::read.mat("http://ufldl.stanford.edu/housenumbers/test_32x32.mat"))
user system elapsed
34.54 109.36 161.91
> system.time(x <- rio::import("http://ufldl.stanford.edu/housenumbers/test_32x32.mat"))
user system elapsed
97.75 131.48 308.01 I would suggest reporting the speed difference to: https://github.com/stewid/rmatio/issues |
leeper
closed this
Sep 9, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
moldach commentedSep 3, 2019
rio::import()
isn't working for a Matlab file (.mat
) that i was able to load withR.matlab
.I used
system.time()
onR.matlab
and it took about a minute. However, when I try to import with rio it just "freezes"/not-responding... after about 15 min I was forced to Terminate my Rstudio application.I don't think you will include
R.matlab
due to dependencies ( issue# 24 ). However, rather than it just freezing like this, I think it should just throw an error and direct the user to this other package so they don't wait for ever thinking it's just a large dataset.user system elapsed
5.19 0.94 42.59
After this it's not-responding.