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:
Error in writeBin(bin, saveToDisk) :
long vectors not supported yet: connections.c:4123
where
objects$name[[36]][1] "20170523/planofull_170523.txt"
thanks
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