Search code examples
rtidyversedevtoolsvctrs

tidyverse not loaded, it says "namespace ‘vctrs’ 0.2.0 is already loaded, but >= 0.2.1 is required"


strong textI 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 

Solution

  • It´s important to check for packages updates. It´s in tool menu->check for package updates->choose the packages. I had the same problem with other package "drc" and it gave me the same error with old version of "vctr".