我正在尝试从本地zip文件中安装R中的包。我在本地驱动器上有zip文件,但是当我去 Packages - >从本地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'
这里发生了什么?
非常感谢, 甲
答案 0 :(得分:11)
尝试:
install.packages(file.choose(), repos = NULL, type="source")
它将允许您选择所需的zip文件。