首页 文章

无法从Github安装R包“graph3d”

提问于
浏览
0

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


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

但是获得该结果的错误:


从URL https://api.github.com/repos/kassambara/graph3d/zipball/master下载GitHub repo kassambara / graph3d @ 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:/ Users / Ostap / AppData / Local / Temp / RtmpAvMz4w / devtools21806e4276dd / kassambara -graph3d-483d846“\ --library =”C:/ Program Files / R / R-3.4.1 / library“--install-tests”C:\ Program“Ґпў«ҐЁЁбҐҐҐҐҐҐҐҐ ®·¤®©,ЁбЇ®«пҐ¬®©Ја®¬¬®©Ё«ЁЇЄҐвлодлодо«® . 安装失败:命令失败(1)

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


1 回答

  • 0

    通过在没有间隙的级别名称(例如“Program Files”)中重新安装R和Rtools来解决问题 . 之后,对于analisis环境perpose,我使用一个一个执行命令:

    find_rtools()

    [1]是的

    has_devel()

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

    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.oc:/ 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:/Compiler/gcc-4.9.3/local330/lib -LC:/R-34~1.2/bin/x64 -lR [1] TRUE

    [1]是的

    So then installaion graph2d package and anotherones from Github:

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

    work properly) 问题解决了 .

相关问题