簡體   English   中英

RStudio 無法識別已安裝的 Rtools40

[英]RStudio does not recognize installed Rtools40

我反復收到以下錯誤:

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)

我按照此處的說明操作,以管理員身份運行 Rtools40 安裝程序,沒有出現任何錯誤。 我將 RTools 放在 PATH using.Renviron 上,作為檢查,說明說測試這個:

> Sys.which("make")
                              make 
"C:\\rtools40\\usr\\bin\\make.exe" 

但是我仍然從 RStudio 得到同樣的錯誤。

線程建議重新安裝 RTools(無幫助)並以管理員身份運行 RStudio(無幫助)。 否則,該線程指向類似的 RStudio 問題,但這是針對 RTools 的早期版本,在線程末尾它指示 RTools40,這就是我所擁有的。

卸載R、RStudio和RTools,重新安裝后問題似乎解決了。 我把 R 直接放在 C:\ root,因為我以前遇到過庫問題,沒有 windows program files 文件夾的權限。 這可能有所貢獻。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM