无法从Github安装R包“graph3d”

时间:2017-11-17 17:24:34

标签: r github install.packages

我尝试用这种方式安装“graph3d”R包:

if(!require(devtools)) install.packages("devtools")
devtools::install_github("kassambara/graph3d", quiet = F )

但是得到了那个结果的错误:

  

下载GitHub repo kassambara / graph3d @ master

     

来自网址   https://api.github.com/repos/kassambara/graph3d/zipball/master

     

安装graph3d“C:/ Program Files / R / R-34~1.1 / bin / x64 / R”   --no-site-file --no-environ --no-save --no-restore --quiet CMD \ INSTALL   “C:/用户/ Ostap /应用程序数据/本地/温度/ RtmpAvMz4w / devtools21806e4276dd / kassambara-graph3d-483d846”   \     --library =“C:/ Program Files / R / R-3.4.1 / library”--install-tests

           

“C:\ Program”ҐўўҐҐвввЁЁЁЁ©©Є¬ҐҐҐ¬¬®é®©®,ЁЁЇ«Ґ®©ЁЈ®¬«Ё«ЁЇЄҐлллл ®¬。

     

安装失败:命令失败(1)

     

是什么原因?有人可以解释如何解决它吗?我真的很感激那个人。感谢甚至尝试&建议:)

1 个答案:

答案 0 :(得分:0)

通过在目录中重新安装R和Rtools来解决问题,其中级别名称没有间隙(例如“Program Files”)。之后,对于analisis环境,我会逐个执行命令:

  

find_rtools()

[1] TRUE

  

has_devel()

“C:/R-34〜1.2 / bin / x64 / R” - no-site-file --no-environ --no-save --no-restore --quiet CMD SHLIB foo.c < / p>

c:/ Rtools / mingw_64 / bin / gcc -I“C:/R-34~1.2/include”-DNDEBUG -I“d:/Compiler/gcc-4.9.3/local330/include”-O2 - Wall -std = gnu99 -mtune = core2 -c foo.c -o foo.o c:/ Rtools / mingw_64 / bin / gcc -shared -s -static-libgcc -o foo.dll tmp.def foo.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/编译器/ gcc-4.9.3 / local330 / lib -LC:/R-34~1.2/bin/x64 -lR [1] TRUE

[1] TRUE

然后安装graph2d软件包和Github的其他人:

  

devtools :: install_github(“kassambara / graph3d”,quiet = FALSE)

正常工作)问题已解决。