我被困在我正在做的一个项目上。安装说明说:
此节点使用包 R4CouchDB 版本 0.5.1。目前官方 cran 仓库中没有这个版本,所以我们从 github 下载并安装在 R 3.1 启动 R 3.1 并在 R 控制台复制粘贴以下代码:
###Code Starts here
if (!require("downloader"))
install.packages("downloader")
require(downloader)
url <- "https://github.com/wactbprot/R4CouchDB/archive/master.zip"
zipfile <- paste(getwd(), "/R4CouchDB.zip", sep="")
download(url=url, destfile=zipfile)
unzip(zipfile=zipfile, exdir=getwd())
targzfile <- paste(getwd(), "/R4CouchDB-master/R4CouchDB_0.5.1.tar.gz",sep="")
install.packages(targzfile, repos=NULL, type="source")
unlink(paste(getwd(), "/R4CouchDB-master"), recursive=TRUE)
file.remove(zipfile)
###Code Ends here
但是,当我在我的 Windows 系统上运行它时,它不会安装该软件包。它返回一个无效的包警告和没有指定的包错误