Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: package or namespace load failed for ‘tidyverse’ in loadNamespace

I'm getting the following error when I'm loading tidyverse. It was all working fine a few minutes ago when I was running my shinyapp. How should I resolve this?

Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘rlang’ 0.3.0.1 is already loaded, but >= 0.3.1 is required

like image 613
Shreya Agarwal Avatar asked Mar 29 '19 10:03

Shreya Agarwal


People also ask

Why is tidyverse not loading in R?

If the tidyverse package doesn't load, it probably means it didn't install correctly the first time. Please rerun the package installation, then pay careful attention to the final output. If you find any errors reported in the console, please post these here, so we can help troubleshoot.

Does loading tidyverse load dplyr?

When you load the tidyverse package, R will also load the following packages: ggplot2. dplyr.

What does tidyverse package do?

The tidyverse is an opinionated collection of R packages designed for data science. All packages share an underlying design philosophy, grammar, and data structures. See how the tidyverse makes data science faster, easier and more fun with “R for Data Science”.


1 Answers

I had the same problem but managed to tackle it. You may remove the current version of rlang using the following command:

remove.packages("rlang")

and then install the rlang again:

install.packages("rlang")

After that run the library:

library(tidyverse)
like image 200
abbas1989 Avatar answered Oct 31 '22 14:10

abbas1989