【发布时间】:2018-04-08 18:34:16
【问题描述】:
我最近安装了 tidyverse。但是,我在调用它时收到以下错误消息。
> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i,
c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘rlang’
In addition: Warning message:
package ‘tidyverse’ was built under R version 3.4.4
不知道为什么rlang没有下载。我试图通过单独下载 rlang 来解决这个问题。在此之前,我进入了我的文件并删除了已经存在的 rlang 版本。尽管如此,我还是收到了以下消息:
> install.packages("rlang")
Installing package into ‘C:/Users/mbesw/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.2.0.zip'
Content type 'application/zip' length 817350 bytes (798 KB)
downloaded 798 KB
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘rlang’
The downloaded binary packages are in
C:\Users\mbesw\AppData\Local\Temp\RtmpWMK8gb\downloaded_packages
尽管刚刚安装它,但当我尝试加载 rlang 时收到以下消息:
> library(rlang)
Error in library(rlang) : there is no package called ‘rlang’
有谁知道为什么我特别遇到 rlang 问题?我的计算机上的某个地方是否存储了我不知道的旧版本的 rlang?
【问题讨论】: