'I'm trying to installl tidyver packege, when i try to run library(tidyverse) i end up getting this error:
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘cli’ 3.1.1 is already loaded, but >= 3.3.0 is required.
I have tried to troubleshoot usind this commands
remove.packages("rlang")
Install.packages("rlang")
library(tidyverse)
However, i end up getting the same error. What could be the reason for this?
This is what i'm getting after installing it:
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘cli’ 3.1.1 is already loaded, but >= 3.3.0 is required
I'm getting the same error even after restaring Rstudio
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘cli’ 3.1.1 is already loaded, but >= 3.3.0 is required
If you restart r studio but have the options to save and restore workspace , this will sabotage your attempt to replace cli. (Because rstudio would load the old cli you dont want before you have the chance to load the preferred one).
Check that your restarts are effective by calling sessionInfo() after and confirming that your todyverse packages etc are not loaded/attached