Could not find function “zip.file.extract”

て烟熏妆下的殇ゞ 提交于 2020-04-07 06:48:10

问题


library(utils)

a<-zip.file.extract("\\1\\1.csv",zipname="drivers.zip")

Error: could not find function "zip.file.extract"

What's going on?


回答1:


zip.file.extract() is a defunct function as of R 2.14 (see ?"utils-defunct" help page or try brining up the ?zip.file.extract help page). Use the unzip() function instead. Perhaps

unzip("drivers.zip", files="\1\1.csv")

or you can omit the files= to extract all files in the zip archive to the current working directory.



来源:https://stackoverflow.com/questions/28246760/could-not-find-function-zip-file-extract

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!