简体   繁体   English

RCPP仍然找不到Rtools

[英]Rcpp still cannot find Rtools

I have been through every bit of advice I can find and still I cannot get Rcpp to link successfully to Rtools, even though find_rtools() returns TRUE . 尽管可以找到所有建议,但即使find_rtools()返回TRUE ,我仍然无法使Rcpp成功链接到Rtools。

I am running Windows 7 professional, R version 3.5.1 (2018-07-02) -- "Feather Spray", Rtools35. 我正在运行Windows 7专业版R版本3.5.1(2018-07-02)-“ Feather Spray”,Rtools35。 I have installed Rtools as administrator and I have tried versions 34 and 35, with and without rebooting. 我已经以管理员身份安装了Rtools,并且尝试了34和35版本,无论是否重新启动。 My PATH variable appears to be set correctly, according to all advice. 根据所有建议,我的PATH变量似乎设置正确。 When I get the error message about needing additional tools I have tried letting Rcpp install Rtools itself but no joy. 当收到有关需要其他工具的错误消息时,我尝试让Rcpp自己安装Rtools,但没有任何乐趣。 My PATH does not contain spaces and I have managed to install and use Rcpp on two other machines (and even on the current one when I was using a much earlier version of R and Rcpp - a twin machine is working fine with an old version of R). 我的PATH不包含空格,并且我设法在其他两台计算机上安装并使用Rcpp(甚至在使用R和Rcpp的较早版本的当前计算机上也要在其上使用-双胞胎计算机可以在旧版本的R上正常工作) R)。

The key error message appears to be: 关键错误消息似乎是:

> find_rtools()
[1] TRUE
> evalCpp("1+1")

make: *** No rule to make target 'file137c6efd765d.o', needed by 'sourceCpp_3.dll'. make:***没有规则来创建目标文件“ file137c6efd765d.o”,这是“ sourceCpp_3.dll”所需的。 Stop. 停止。 Error in sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir, : Error 1 occurred building shared library. sourceCpp中的错误(代码=代码,env = env,重建=重建,cacheDir = cacheDir ,:构建共享库时发生错误1。

but all the advice I can find for this error relate to situations where the user themself is running 'make'. 但是我能找到的关于此错误的所有建议都与用户自己正在运行“ make”的情况有关。 I get the same error regardless of whether I run R directly from the console or through Rstudio (Version 1.1.463). 无论我是直接从控制台还是通过Rstudio(版本1.1.463)运行R,我都会遇到相同的错误。 Any suggestions as to diagnostics I can run / how I might solve this would win eternal gratitude. 关于我可以运行的诊断程序/如何解决此问题的任何建议将赢得您的永恒感激。

You say 你说

I have tried letting Rcpp install Rtools itself 我尝试让Rcpp自行安装Rtools

and I can assure you that we have no facility in Rcpp for this -- similarly find_rtools() is NOT a function of ours. 而且我可以向您保证,Rcpp中没有为此提供的功能-同样, find_rtools()不是我们的功能。 Maybe you confuse Rcpp and RStudio and/or devtools . 也许您会混淆Rcpp和RStudio和/或devtools

Quick question: Is Rtools installed in C:/ ? 快速问题:Rtools是否安装在C:/中? Please try evalCpp("2+2", verbose=TRUE) to see where it goes. 请尝试evalCpp("2+2", verbose=TRUE)看看它的evalCpp("2+2", verbose=TRUE)

Rcpp, as we document, assumes that R CMD somecommand works on your computer. 正如我们所记录的, R CMD somecommand假定R CMD somecommand在您的计算机上可以使用。 Ensuring that is your responsibility as we do not have access to your computer 确保这是您的责任,因为我们无法访问您的计算机

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM