Rtools 3.5 无法识别? [英] Rtools 3.5 not recognized?

查看:37
本文介绍了Rtools 3.5 无法识别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在一台以前没有 R 的新计算机上安装了 R3.5(和 RStudio).然后我安装了 devtools 包,当我去安装一个 github 包时,我意识到(当提示时!)我忘记安装 Rtools,所以我按照提示安装.有趣的是,这个 R 工具默认安装在 C:\RBuildTools 目录下,并且没有我在以前版本中回忆的设置路径变量的提示.

I just installed R3.5 (and RStudio) on a new computer that has not previously had R on it. I then installed the devtools package, and when I went to install a package off of github, I realized (when prompted!) I had forgotten to install Rtools, so I followed the prompts to do so. Interestingly, this R tools installed to the directory of C:\RBuildTools by default and with no prompts for setting path variables as I had recalled in previous versions.

当我重新加载 R 时,提示我再次安装 Rtools.我的路径不包含对 Rtools(或 Rbuildtools 目录)的引用,并且记住我过去的安装使用了目录 C:\Rtools,我决定卸载 C:\RBuildTools 并安装一个新版本的 http://cran.r-project.org/bin/windows/Rtools/(已安装3.5版) 到 C:\Rtools.在安装中,我选中了路径变量选项.

When I reloaded R, I was prompted to install Rtools again. My path contained no reference to Rtools (or the Rbuildtools directory), and remembering that my past installations had used the dir C:\Rtools, I decided to uninstall C:\RBuildTools and installed a fresh version off http://cran.r-project.org/bin/windows/Rtools/ ( installed version 3.5) into C:\Rtools. In installation I had the path variable option checked.

我重新加载了 RStudio 并检查以确保找到了 Rtools:

I reloaded RStudio and checked to make sure Rtools was found:

> devtools::find_rtools()
Error in system(full, intern = TRUE, ignore.stderr = quiet, ...) : running command '"C:/PROGRA~1/R/R-35~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD config CC' had status 2

但是,rtools 出现在我的 PATH 中:

However, rtools appears in my PATH:

> Sys.getenv("PATH")
[1] "C:\\Program Files\\R\\R-3.5.0\\bin\\x64;C:\\Rtools\\bin;..."

所以这似乎不是 Rtools 没有正确添加到我的 Path 变量的问题.谷歌搜索出现了看似相关的错误,但到目前为止还没有解决我的问题.我在​​这里尝试了这两个建议并且都没有工作.我想知道这是否可能与 RStudio 相关.

So this doesn't appear to be an issue with Rtools not being added properly to my Path variable. Google searches have turned up seemingly related errors but nothing so far that solves my issue. I have tried both suggestions here and neither have worked. I wonder if this could be related to RStudio.

推荐答案

我在使用 RTools 3.5 时遇到了类似的问题.
安装程序确实将 C:\RTools\bin 添加到 PATH,但它没有添加
C:\RTools\mingw_64\bin 这显然引起了一些混乱.

I had a similar problem with RTools 3.5.
The installer did add C:\RTools\bin to the PATH, but it did not add
C:\RTools\mingw_64\bin which apparently did cause some confusion.

C:\RTools\mingw_64\bin 添加到 PATH 后,一切正常.

After adding C:\RTools\mingw_64\bin to the PATH, everything was fine.

我的症状有点不同:RStudio 在尝试安装并重新启动"我的包时报告了一个错误,即未找到 RTools,而 devtools::find_rtools() 报告它们存在.

My symptoms were a bit different though: RStudio reported an error when trying to "Install and Restart" my package that RTools were not found, while devtools::find_rtools() reported them to be present.

这篇关于Rtools 3.5 无法识别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆