出现版本错误时如何安装/库“ noiris”

时间:2019-10-10 22:50:10

标签: rstudio tidyverse

我正在尝试为作业安装“ noiris”。我的教授建议我更新Rstudio,但是现在我无法运行noiris或tidyverse。我的代码在下面。

install.packages("noiris")
library(noiris)
install.packages("tidyverse")
library(tidyverse)

> install.packages("noiris")
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/annal/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘noiris’ is not available (for R version 3.6.1)
> library(noiris)
Error in library(noiris) : there is no package called ‘noiris’
> install.packages("tidyverse")
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/annal/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/tidyverse_1.2.1.zip'
Content type 'application/zip' length 93030 bytes (90 KB)
downloaded 90 KB

package ‘tidyverse’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\annal\AppData\Local\Temp\RtmpUdxgeo\downloaded_packages
> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 namespace ‘vctrs’ 0.1.0 is being loaded, but >= 0.2.0 is required

0 个答案:

没有答案