找不到函数“zip.file.extract" [英] Could not find function "zip.file.extract"

查看:34
本文介绍了找不到函数“zip.file.extract"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

<块引用>

错误:找不到函数zip.file.extract"

怎么回事?

解决方案

zip.file.extract() 是 R 2.14 中的已失效函数(请参阅 ?"utils-defunct" 帮助页面或尝试打开 ?zip.file.extract 帮助页面).请改用 unzip() 函数.也许

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

或者您可以省略 files= 以将 zip 存档中的所有文件解压缩到当前工作目录.

library(utils)

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

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

What's going on?

解决方案

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.

这篇关于找不到函数“zip.file.extract"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆