问题 There are very similar questions about this topic, but non deals with this under R quite precisely. I have a csv.gz file and I would like to "unzip" the file and have it as ordinary *.csv file. I suppose one would go about first reading the csv.gz file and latter via write.csv command create the csv file itself. Here what I have tried a part of other things: gz.file <- read.csv(gzfile(file.choose()), as.is = TRUE) gives: head(gz.file) farmNo.milk.energy.vet.cows 1 1;862533;117894;21186;121 2