cloudyr / googleCloudStorageR

Google Cloud Storage API to R
https://code.markedmondson.me/googleCloudStorageR
Other
104 stars 29 forks source link

Warning: Error in cache function #147

Open MarkEdmondson1234 opened 3 years ago

MarkEdmondson1234 commented 3 years ago

When testing solution of this https://github.com/cloudyr/googleCloudStorageR/issues/146 I got this warning

my_parse <- function(obj){
    tmp <- tempfile(fileext = ".rds")
    suppressMessages(gcs_get_object(obj, saveToDisk = tmp))
    readRDS(tmp)
}
obj3 <- my_parse("obj.rds")
#Warning message:
#Error in cache function 

I think it is as we're messing with the HTTR response