I would like to unzip a file on my network that is a ".gz" winzip file and inside there is a .cax file I want to read.
when I run
unzip("/connect/me/test.gz", files = "test.cax", list = TRUE, overwrite = TRUE,junkpaths = FALSE, exdir = ".", unzip = "internal")
here I get an error
Error in unzip("/connect/me/test.gz", files = NULL, :
zip file 'connect/me/test.gz' cannot be opened
######################################## I have also tried this:
g<-gzfile("/connect/me/test.gz", open = "", encoding = getOption("encoding"),compression = 6)
g
and this returns
description class mode
"/connect/me/test.gz" "gzfile" "rb"
text opened can read
"text" "closed" "yes"
can write
"yes"
so can anyone help. looks like gzfile has potential but how do I read the file?
Thank you.