楼主: 梦醒之后
37410 35

[学习分享] 从GitHub上安装R程序包的一点经验(for Windows) [推广有奖]

21
yuanlindc 发表于 2015-12-31 20:09:11
镜中人_zx 发表于 2015-9-16 19:59
"D:/Program Files/R/R-3.2.2/bin/x64/R" --no-site-file --no-environ --no-save  \
  --no-restore CMD  ...
你好,我也和你遇到了同样的问题,同时感觉主楼的帖子方法好像不全,请问你的问题解决了嘛?是如何解决的?

22
yuanlindc 发表于 2016-1-1 20:47:33
你好楼主,按照您的攻略,在RStudio运行到第四步时,出现了如下提示:
Downloading GitHub repo vinash85/GOAL@master
Installing GOAL
"J:/R-32~1.3/bin/x64/R" --no-site-file  \
  --no-environ --no-save --no-restore CMD  \
  INSTALL  \
  "C:/Users/111/AppData/Local/Temp/RtmpIfg9c6/devtools572839086b1a/vinash85-GOAL-b73025b"  \
  --library="C:/Users/111/Documents/R/win-library/3.2"  \
  --install-tests

* installing *source* package 'GOAL' ...
** libs

*** arch - i386
g++ -m32 -I"J:/R-32~1.3/include" -DNDEBUG    -I"C:/Users/111/Documents/R/win-library/3.2/Rcpp/include" -I"C:/Users/111/Documents/R/win-library/3.2/RcppArmadillo/include" -I"C:/Users/111/Documents/R/win-library/3.2/MASS/include" -I"C:/Users/111/Documents/R/win-library/3.2/BayesLogit/include" -I"C:/Users/111/Documents/R/win-library/3.2/RcppProgress/include" -I"d:/RCompile/r-compiling/local/local323/include"     -O2 -Wall  -mtune=core2 -c AR1.cpp -o AR1.o
In file included from AR1.cpp:1:0:
AR1.h:6:23: fatal error: Eigen/Dense: No such file or directory
compilation terminated.
make: *** [AR1.o] Error 1
Warning: 运行命令'make -f "Makevars.win" -f "J:/R-32~1.3/etc/i386/Makeconf" -f "J:/R-32~1.3/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="GOAL.dll" OBJECTS="AR1.o CUBS.o CUBS_update.o FSF_nmix.o InvertY.o InvertY2.o LogitWrapper.o Matrix.o MatrixFrame.o PolyaGamma.o PolyaGammaAlt.o PolyaGammaSP.o RNG.o RRNG.o RcppExports.o epi_eQTL.o ransampl.o"'的状态是2
ERROR: compilation failed for package 'GOAL'
* removing 'C:/Users/111/Documents/R/win-library/3.2/GOAL'
Error: Command failed (1)
另外还有下载的Rtools和Miktex如何配置系统变量?

23
镜中人_zx 学生认证  发表于 2016-3-6 16:54:53
yuanlindc 发表于 2015-12-31 20:09
你好,我也和你遇到了同样的问题,同时感觉主楼的帖子方法好像不全,请问你的问题解决了嘛?是如何解决的 ...
我在统计之都论坛上找到了解决之道,这个问题要归咎于神奇的windows系统。windows环境中,R的安装目录最好不带空格,体现在windows自动生成的安装目录“Program Files”中。
这样就能解决这个问题。

24
常小靛 发表于 2016-7-5 18:25:05
为什么我安装所有的包都是这种情况

QQ图片20160705182553.png (9.29 KB)

QQ图片20160705182553.png

25
suzhzh 发表于 2016-7-6 09:21:46
常小靛 发表于 2016-7-5 18:25
为什么我安装所有的包都是这种情况
Mine is the same, who can help us?

26
常小靛 发表于 2016-7-6 15:40:05
suzhzh 发表于 2016-7-6 09:21
Mine is the same, who can help us?
好像是没有下载Rtools,我重新加载后就自动下载安装了

27
常小靛 发表于 2016-7-6 15:40:06
suzhzh 发表于 2016-7-6 09:21
Mine is the same, who can help us?
好像是没有下载Rtools,我重新加载后就自动下载安装了

28
suzhzh 发表于 2016-7-6 18:04:11
常小靛 发表于 2016-7-6 15:40
好像是没有下载Rtools,我重新加载后就自动下载安装了
Many thanks for your direction, I will take a try and see whether this problem will be resolved.

29
suzhzh 发表于 2016-7-6 18:49:48
There is still the error message pop out;
Error in curl:: curl_fetch_disk(url, x$path, handle=handle): Coun't resolve the host name.
NOTE: I have installed the Rtools in my PC.

30
常小靛 发表于 2016-7-6 21:51:49
suzhzh 发表于 2016-7-6 18:49
There is still the error message pop out;
Error in curl:: curl_fetch_disk(url, x$path, handle=handl ...
Rtools 的安装位置对吗,好像要跟Rstudio,R安在同一个目录下

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-10 23:39