tidyverse未加载,它说“名称空间'vctrs” 0.2.0已加载,但> = 0.2.1是必需的”。 [英] tidyverse not loaded, it says "namespace ‘vctrs’ 0.2.0 is already loaded, but >= 0.2.1 is required"

查看:563
本文介绍了tidyverse未加载,它说“名称空间'vctrs” 0.2.0已加载,但> = 0.2.1是必需的”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装 tidyverse 软件包时遇到问题,这使我无法执行许多文本处理任务。问题与自2017年以来许多以前的主题中提到的问题相同,当我输入 library(tidyverse)或尝试打开其他相关软件包时,他们总是说它需要0.2 .1版本的 vctrs 。我尝试使用远程下载或下载其他临时版本,但还是可以使用。有人可以帮我吗?



我正在使用运行在Rstudio 1.2.5033上的最新R(版本3.6.1)。我还更新了 vctrs 程序包。



  install.packages( tidyverse)devtools :: install_github( tidyverse / tidyverse)library(tidyverse)错误:在loadNamespace(i,c(lib.loc, .libPaths()),versionCheck = vI [[i]]):名称空间 vctrs 0.2.0已加载,但需要> = 0.2.1另外:警告消息:软件包 tidyverse是在R版本下构建的3.6.2库(devtools)devtools :: install_github( tidyverse / tidyverse)library(tidyverse)错误:loadNamespace(i,c(lib.loc,.libPaths())中的 tidyverse包或命名空间加载失败versionCheck = vI [[i]]):名称空间'vctrs'0.2.0已被加载,但必须> = 0.2.1另外:警告消息:软件包'tidyverse'是在R版本3.6.2下构建的 

解决方案

您可能已经加载了多个tidyverse程序包,并运行了多个R实例。不确定其他操作系统,但是在Windows上,如果正在使用这些软件包,则这些DLL文件将被使用,您无法删除它们,这就是 install.packages()函数将尝试执行此操作。



因此,仅关闭R的一个实例即可,也许只是为了确定重启计算机,然后重试。 / p>

I keep encountering problems with installing tidyverse package, which preventing me from implementing many text processing tasks. The problem is the same as those mentioned in many previous threads since 2017 in that when I enter library(tidyverse) or try to open other related packages, they always say it requires 0.2.1 version of vctrs. I have tried using remote download or download other temporary versions but to avail. Could someone help me on this?

I'm using the latest version of R (version 3.6.1), running on Rstudio 1.2.5033. I also updated my vctrs package.

install.packages("tidyverse")
devtools::install_github("tidyverse/tidyverse")
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 namespace ‘vctrs’ 0.2.0 is already loaded, but >= 0.2.1 is required
In addition: Warning message:
package ‘tidyverse’ was built under R version 3.6.2 


library(devtools)
devtools::install_github("tidyverse/tidyverse")
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 namespace ‘vctrs’ 0.2.0 is already loaded, but >= 0.2.1 is required
In addition: Warning message:
package ‘tidyverse’ was built under R version 3.6.2 

解决方案

You've probably got more than one instance of R running with those tidyverse packages loaded. Not sure about other operating systems, but on Windows, if these packages are being used, then those DLL files will be in use and you cannot delete them, which is what the install.packages() function will try to do.

So, just close all but one instance of R, maybe restart the computer just to be sure, and try again.

这篇关于tidyverse未加载,它说“名称空间'vctrs” 0.2.0已加载,但> = 0.2.1是必需的”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆