-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Problems downloading 2GB text file #69
Comments
Hmm ok, this is the save function in base R failing as 2GB is too big. Will investigate to see if it can be solved. |
From ?writeBin: @leeper is there a work around for this? |
Same issue here richfitz/remake#76 |
Nice!!!!....thank you so much. the reason I think is beacause gcs_get_object download it in raw format (long vector) and as you said is to big for R. But for instance if I try to download the file using Rcurl with this command:
I can download the file successfuly only if I set the file public (I can´t make this for security reasons). |
Hmm ok, in that case try downloading it via the |
So, in that way I must always give my credentials by web. Am I rigth?. |
I meant, if i do it with a not public object, the result is a html file (a google page asking credentials). |
Yes, as we unfortunately don't have this feature yet, where you could have a signed URL that you can reach via code #54 I'll see if you can use the same auth you have from the other API calls to apply to the download that you can make via |
Probably best solution at the moment would be to use the python gsutil tool (https://cloud.google.com/storage/docs/access-control/create-signed-urls-gsutil) , either directly or to create the signed URL, then call that URL from R. If necessary you can wrap the python tool in R wrappers if you must stick within R. |
Ok it looks like a solved issue in |
Man that would be awesome!!! I appreciate your help. |
Give that a go now from the latest version on github, its working in my local tests for small files at least. |
|
I will prove this!!!. |
Worked like a charm!!!. you are the best man. thank you so much. |
Thanks for bringing it up, now others will benefit too :) |
Thread from cloudyr/cloudyr.github.io#15
@fncalderong said:
Hi, I am using googleCloudStorageRs package. I am trying to download a 2gb txt file with R but have no susses.
I tried to download the file with gcs_get_object function, but the file is in Raw format and is quite dificult to convert it.
I tried to get the URL of the file with gcs_download_url function, but when I try to download the file via URL using downloadFile from R.utils Package it download a html file (the page where google ask the credentials).
@MarkEdmondson1234 said:
Yes best report there, but it sounds like you only need to specify the .txt file extension in the name you have downloaded it to. Try renaming the file.
@fncalderong said:
when I try to run this:
gcs_get_object(objects$name[[36]], saveToDisk = "data.txt",bucket)
I get this:
where
objects$name[[36]][1] "20170523/planofull_170523.txt"
thanks
The text was updated successfully, but these errors were encountered: