You can use gzfile
to access the content of a gzip
compressed file, for example:
read.table(gzfile("/tmp/foo.csv.gz"))
where foo.csv.gz
is a gzip compressed csv file. I got this form @DirkEddelbuettel's answer in this post.
If your goal is to extract the file, you can use the gunzip
function from the R.utils
package. See this R-help post.