一路嘿嘿 发表于 2014-8-1 17:44
从github上安装包是需要从源码安装
所以在windows下需要安装Rtools和miktex
然后利用devtools包的函数ins ...
您好,我下载Rtools和Miktex安装之后,library(devtools)成功后,install.github后出现以下提示:
> install_github("vinash85/GOAL")
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)
请问如何解决呢?谢谢