来自GitHub的包编译失败

时间:2018-02-15 02:36:41

标签: r windows rstudio

我正在尝试使用devtools从GitHub安装软件包。

library("devtools")
install_github("tchakravarty/DCS")

但它给了我以下内容:

Downloading GitHub repo tchakravarty/DCS@master
from URL https://api.github.com/repos/tchakravarty/DCS/zipball/master
Installing DCS
"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  "C:/Users/Alex S/AppData/Local/Temp/Rtmp0gaVCB/devtools1790c6de55/tchakravarty-DCS-bcb00ac"  \
  --library="C:/Users/Alex S/Documents/R/win-library/3.4" --install-tests 

* installing *source* package 'DCS' ...
** libs

*** arch - i386
C:/RBUILD~1/3.4/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/Alex S/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Alex S/Documents/R/win-library/3.4/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c GaussianCopulaGASModel.cpp -o GaussianCopulaGASModel.o
C:/RBUILD~1/3.4/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/Alex S/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Alex S/Documents/R/win-library/3.4/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c MarkedPointProcess.cpp -o MarkedPointProcess.o
MarkedPointProcess.cpp:14:1: error: 'arma' does not name a type
 arma::vec SimulateMarkedPointProcess(arma::vec vEta, arma::mat mAlpha, arma::vec vOmega, 
 ^
make: *** [MarkedPointProcess.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-34~1.3/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.3/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="DCS.dll" OBJECTS="GaussianCopulaGASModel.o MarkedPointProcess.o RcppExports.o"' had status 2
ERROR: compilation failed for package 'DCS'
* removing 'C:/Users/Alex S/Documents/R/win-library/3.4/DCS'
In R CMD INSTALL
Installation failed: Command failed (1)

最初我认为可能是我有不同版本的R和Rtools所以我确保我有最新版本的两个(也更新了R studio)。 还尝试从GitHub安装另一个包

install_github("kbroman/broman")

工作得很好。有什么想法吗?可能是因为我无法从GitHub安装的软件包已经过时了吗? 非常感谢任何帮助。

0 个答案:

没有答案