如何在R中下载和解压缩zip文件?

时间:2016-05-02 18:44:59

标签: r zip unzip

我是R的全新用户,现在我需要在我的R中下载并解压缩http://gdac.broadinstitute.org/runs/code/firehose_get_latest.zip,我已尝试过代码:

temp <- tempfile()
> download.file("http://gdac.broadinstitute.org/runs/code/firehose_get_latest.zip",temp)

然而,当我尝试以下代码时:

data <- read.table(unz(temp, "firehose_get_latest"))

它显示了

Error in open.connection(file, "rt") : cannot open the connection
In addition: Warning message:
In open.connection(file, "rt") :
  cannot locate file 'firehose_get_latest' in zip file '/tmp/RtmpotKFGQ/file11ff4f04fe46'

那我该怎么做呢? 任何帮助都得到了赞赏!

0 个答案:

没有答案