You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2019. It is now read-only.
the need is to download files from blob storage into a azure VM.
For smaller files, this works and it’s also possible to set the type to “text” and leave out the rawToChar function.
For larger files (>2 Gb) the download as type text throws an error, as data type raw character cannot be > 2Gb in R.
Downloading with type set to raw works, but then the rawToChar function gives the same error (long vectors not supported yet: /builddir/patched_source/src/main/raw.c:68).
This is a fundamental limit in R. As a workaround, you can use download.file to save the file to disk, rather than trying to create an in-memory object.
I don't think this is a fundamental limit, actually. I don't have the link ready, but I think the API allows to download from blob in chunks. In other words, the download turns into a streaming operation where you stream bytes from blob to local disk.
Well, I meant a fundamental limit on the length of character strings. Downloading to disk would get around that, sure. Wouldn't it still be simpler to use download.file?
The limit on the number of strings in a vector is essentially how much memory you have, but the limit on string size is 2^31 - 1; see ?"Memory-limits".
There are also limits on individual objects. The storage space cannot exceed the address limit, and if you try to exceed that limit, the error message begins cannot allocate vector of length. The number of bytes in a character string is limited to 2^31 - 1 ~ 2*10^9, which is also the limit on each dimension of an array.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
the need is to download files from blob storage into a azure VM.
For smaller files, this works and it’s also possible to set the type to “text” and leave out the rawToChar function.
For larger files (>2 Gb) the download as type text throws an error, as data type raw character cannot be > 2Gb in R.
Downloading with type set to raw works, but then the rawToChar function gives the same error (long vectors not supported yet: /builddir/patched_source/src/main/raw.c:68).
could we fix it?
thanks!
The text was updated successfully, but these errors were encountered: