Hello,
Using ArvadosR, I cannot manage to read gzipped files stored on Arvados form within a R session.
Example:
library(ArvadosR)
arv <- Arvados$new()
collection <- Collection$new(arv, "<my_collection_uuid>")
fileListing <- collection$getFileListing()
arvadosFile <- collection$get(fileListing[1])
arvadosFile
Type: "ArvadosFile"
Name: "myFile.txt.gz"
Relative path: "/myFile.txt.gz"
Collection: "<my_collection>"
Trying any of the following does not solve the problem since the commands for unzipping the file expect a character string.
arvConnection <- arvadosFile$connection("r")
mytable <- read.table(arvConnection)
mytable <- read.table(gzfile(arvadosFile$read("raw")))
mytable <- fread(arvadosFile$read("raw"))
Any help would be greatly appreciated !