我正在尝试从本地zip文件在R中安装软件包。我在本地驱动器上有 zip 文件,但是当我转到包 --> 从本地 zip 文件安装包时,我收到以下警告:
> utils:::menuInstallLocal()
Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open the connection
另外:警告消息:
1: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file
2: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open compressed file 'cirt/DESCRIPTION', probable reason 'No such file or directory'
这是怎么回事?
提前非常感谢,一个
尝试:
install.packages(file.choose(), repos = NULL, type="source")
它将允许您选择所需的zip文件。