本文介绍了安装Rtools并检查是否可以使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的R用户,他们的大脑真棒.

Dear R users with awesome brains.

我今天新安装了R,Rstudio.

I newly installed R, Rstudio today.

从cran下载完Rtools.exe文件并将其解压缩后,当我尝试在Rstudio中安装软件包时,出现了此警告消息

After I finished download Rtools.exe file from cran and unzip it, I've got this warning message when I tried to install the package in Rstudio

install.packages("Rtools")

我无法理解"Rtools不适用于R版本3.4.3",因为它几天前已在另一台计算机上工作.

I cannot understand that "Rtools is not available for R version 3.4.3" because it worked on another computer a couple of days ago.

如果您对此问题发表评论,将会很有帮助.

It would be helpful if you give me a comment about this problem.

谢谢!

Ellie.

我找到了一个可以帮助我检查是否可以在R中使用Rtools的站点.(感谢让我知道Rtools不是软件包)

I found the site that helps me to check if I can use Rtools in R.(Thanks for letting me know the Rtools is not a package)

https://github.com/stan-dev /rstan/wiki/Install-Rtools-for-Windows

结果是:

Sys.getenv('PATH')
system('g++ -v')
system('where make')

C:\ ProgramFiles \ R \ R-3.4.3 \ library \ Rtools \ bin \ make.exe

C:\ProgramFiles\R\R-3.4.3\library\Rtools\bin\make.exe

笔记本电脑上的Rtool是否可用?

Is the Rtool on my laptop available?

因为我在上面给你的网站中看到了这部分

Because I saw this part in the site I gave you above

[1]"c:\\ Rtools \\ bin; c:\\ Rtools \\ gcc-4.6.3 \\ bin; ...

[1] "c:\\Rtools\\bin;c:\\Rtools\\gcc-4.6.3\\bin;...

但是我的却没有.

谢谢您提前回答我的问题!

Thank you for answering my question in advance!

Ellie.

推荐答案

正如Roland所说,Rtools不是R包,因此必须在此处安装:"> https://cran.r-project.org/bin/windows/Rtools/history.html(根据您的R版本)

As Roland said, Rtools is not a R packages so you must install here:https://cran.r-project.org/bin/windows/Rtools/history.html(according to you R version)

或者您可以了解您的Rtools是否已经安装

Or you can find out whether your Rtools is already installed or not

install.packages("pkgbuild") # pkgbuild is not available (for R version 3.5.0)
install.packages("devtools") # make sure you have the latest version from CRAN
library(devtools) # load package
devtools::install_github("r-lib/pkgbuild") # install updated version of pkgbuild from GitHub
library(pkgbuild) # load package
find_rtools()

ref: https://github.com/r-lib/devtools/issues /1772

希望您能找到路!

这篇关于安装Rtools并检查是否可以使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 12:31