我反复得到以下错误:
WARNING: Rtools is required to build R packages but is not currently installed. Please
download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/OWNER/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)我按照here的说明操作,以管理员身份运行Rtools40安装程序,没有出现任何错误。我使用.Renviron将RTools放在PATH上,作为检查,指令说测试如下:
> Sys.which("make")
make
"C:\\rtools40\\usr\\bin\\make.exe" 然而,我仍然从RStudio得到相同的错误。
此thread建议重新安装RTools (无帮助)并以管理员身份运行RStudio (无帮助)。否则,该线程会指向similar RStudio问题,但这是针对RTools的早期版本,在线程的末尾,它会指示RTools40,这就是我所拥有的。
发布于 2021-09-29 14:45:14
在卸载R、RStudio和RTools并重新安装所有软件后,问题似乎得到了解决。我直接将R放在C:\ root目录下,因为我以前遇到过库的问题,并且对程序文件文件夹没有windows权限。这可能起到了作用。
https://stackoverflow.com/questions/69377949
复制相似问题