我尝试安装R包multidplyr
(目前无法使用
CRAN)来自github。我按了this链接。
我先install.packages("devtools")
,然后是library(devtools)
,然后是devtools::install_github("hadley/multidplyr")
。但它会生成错误消息
Downloading GitHub repo hadley/multidplyr@master
from URL https://api.github.com/repos/hadley/multidplyr/zipball/master
Installing multidplyr
"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" --no-site-file --no-environ --no-save --
no-restore --quiet CMD INSTALL \
"C:/Users/FTXX/AppData/Local/Temp/RtmpEpOeM9/devtools34805943869/hadley-multidplyr-0085ded" \
--library="C:/Users/FTXX/Documents/R/win-library/3.4" --install-tests
Installation failed: Command failed (65535)
如何解决这个问题?我发现如果软件包在CRAN上,那么系统对install.packages("abc")
没有问题,但只要它需要从github安装软件包,就会出现这个问题。我也尝试从github安装其他软件包,它也有同样的问题。
我已按照this说明安装了Rtools
(最新版本)。但是,从github安装包的这个问题仍然存在。我还发现this指令首先下载源zip包multidplyr-master.zip
并将其解压缩到存储并运行所有R包的本地文件夹中
source <- devtools:::source_pkg("C:/Users/FTXX/Documents/R/win-
library/3.4/multidplyr-master")
install(source)
但是,它会报告类似的错误
Installing multidplyr
"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" --no-site-file --no-environ --no-save --
no-restore --quiet CMD INSTALL \
"C:/Users/FTXX/Documents/R/win-library/3.4/multidplyr-master" \
--library="C:/Users/FTXX/Documents/R/win-library/3.4" --install-tests
Error: Command failed (65535)
我的R信息是
R.version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 4.1
year 2017
month 06
day 30
svn rev 72865
language R
version.string R version 3.4.1 (2017-06-30)
nickname Single Candle