簡體   English   中英

在 R Studio 上安裝 R 包的問題

[英]Issue with installing R package on R studio

我在 Rstudio 上工作,我的 version() 結果是:

> version
               _                           
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          3.1                         
year           2016                        
month          06                          
day            21                          
svn rev        70800                       
language       R                           
version.string R version 3.3.1 (2016-06-21)
nickname       Bug in Your Hair

我今天早上從網上下載了最新版本以進行最后一次更新。 在這一點上,我無法安裝包“光柵”:

> install.packages('raster')
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/florent/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘raster’ is not available (for R version 3.3.1)

我在網上查了很多幫助,但找不到解決方案。 我更新了 R(到 4.0.2),這個光柵包正在工作。

任何人都有解決方案? 它開始變得棘手......

謝謝!

您似乎更新了RStudio ,但沒有更新R RStudio 是一個讓 R 使用更容易的程序。所以你需要做的是安裝R的當前版本。 從您的version可以看出,您使用的是 2016 年的版本。這在 R 世界中很古老。

在 RStudio 中,您可以查看工具/全局選項/常規/R 版本,如果有多個版本可用,可能會更改R版本。

暫無
暫無

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

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