一个月前,我在我的个人计算机上默认安装了Rtools选项,并且从那时起就能够在R中编写C ++函数。现在我正在尝试在我公司的计算机上安装Rtools,无法正确安装Rtools。我认为这与PATH或我不太了解的一些相关事情有关。需要帮助。以下是我的步骤和结果:
install.packages(c("Rcpp","installr"));
成功library(installr)
install.Rtools()
。在这一步中有一件事是可疑的:我只选择“将版本信息保存到注册表”。 5.图书馆(Rcpp); evalCpp(“1 + 1”);我得到以下内容: 运行命令:
make -f "C:/R- 30~1.3/etc/i386/Makeconf" -f "C:/R-30~1.3/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)
警告讯息:
SHLIB="sourceCpp_35432.dll" OBJECTS="file1bb831d14d68.o"' had status 127
Error in sourceCpp(code = code, env = env, rebuild = rebuild, showOutput = showOutput, :
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
我确实重新启动计算机以查看奇迹是否会发生,但不会。 谁能帮我?谢谢!