我实验室中的 Window HPC 服务器没有 Rtools,所以当我获取 Rcpp 代码时收到此消息。
Warning message:
running command 'make -f "C:/PROGRA~1/R/R-32~1.2/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-32~1.2/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="sourceCpp_1.dll" WIN=64 TCLBIN=64 OBJECTS="MultiBayes.v1.o"' had status 127
Error in sourceCpp("./rcode/MultiBayes.v1.cpp") :
Error 1 occurred building shared library.
WARNING: The tools required to build C++ code for R were not found.
Please download and install the appropriate version of Rtools:
http://cran.r-project.org/bin/windows/Rtools/
Execution halted
由于管理人员说在服务器中安装 Rtools 可能需要很长时间,我想知道是否有另一种方法可以避免这个问题并在不安装 Rtools 的情况下运行 Rcpp 代码。
据我所知,构建一个包不会有帮助,因为它在安装它时也使用 Rtools。如有错误请指正。
我可以绕道运行代码吗?
感谢您的任何评论和想法。