tidyverse loads an earlier version of dplyr - r

I am trying to use tidyverse and I keep having the same error:
Error: package or namespace load failed for ‘tidyverse’ in
loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘dplyr’ 0.8.3 is being loaded, but >= 1.0.0 is required
Ejecución interrumpida
I have tried to uninstall dplyr and tidyverse and install it from their github repos. However, the error persists.

Related

Error loading library tidyverse, dbplyr, ggplot2

I would like to install more packages in RStudio and got a error message. Before, I worked with gglot2 and it worked well. When I tried to install other packages, more errors occure.
I loaded library DBI, vctrs without a problem, then I'm trying:
> library(ggplot2)
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘vctrs’ 0.4.0 is already loaded, but >= 0.5.0 is required
> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘vctrs’ 0.4.0 is already loaded, but >= 0.4.1 is required
> library(lubridate)
> library(dbplyr)
Error: package or namespace load failed for ‘dbplyr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘cli’ 3.2.0 is already loaded, but >= 3.3.0 is required
I checked all updates, restart R Studio, tried to update vctrs, but anything works. Could anyone help me?
It appears you have old versions of packages installed and loaded.
For example, you have a version of vctrs installed but ggplot2 needs a more recent version. This is especially a problem if you have already called library(vctrs) because the active version of the package is already determined.
The simplest solution is to update your packages. Here are many questions on Stackoverflow about how to do that. Try some of the following links:
Update R using RStudio
How to update packages
Update packages asks for every package

How to load Dplyr

I am having trouble loading the Dplyr package. I manage to install it using install.packages() but when I try to load it using library I get this error message
Error: package or namespace load failed for ‘dplyr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): namespace ‘lifecycle’ 0.2.0 is already loaded, but >= 1.0.0 is required

trouble loading tidyverse, issues with rlang

I get this message when using library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘rlang’ 0.4.5 is already loaded, but >= 0.4.9 is required
I tried removing the rlang package, and tried install.packages("rlang_0.4.10") and install.packages("rlang") in the console, but that doesn't seem to work.

Can't load installed package

I wanted to remove a package and then reinstall it because there were new functions I wanted, but now I seem to have a compatibility issue I cannot get rid of.
I did:
remove.packages("dplyr")
install.packages("dplyr")
library(dplyr)
But I get:
Error: package or namespace load failed for ‘dplyr’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘rlang’ 0.4.6 is already loaded, but >= 0.4.7 is required
In addition: Warning message:
package ‘dplyr’ was built under R version 3.6.3
How can I update this rlang package and successfully load dplyr?

Problem loading sqldf and SQLite packages

I'd like to use the sqldf() function. However, after installing the package, when I load it I receive this error:
install.packages("sqldf", dep = TRUE)
library("sqldf")
> Loading required package: RSQLite
Error: package or namespace load failed for ‘RSQLite’ in loadNamespace(i, c(lib.loc, .libPaths()),
versionCheck = vI[[i]]):
namespace ‘vctrs’ 0.2.0 is already loaded, but >= 0.2.1 is required
Error: package ‘RSQLite’ could not be loaded
Then, when I try to install and load the RSQLite package I receive this one:
> library(RSQLite)
Error: package or namespace load failed for ‘RSQLite’ in loadNamespace(i, c(lib.loc, .libPaths()),
versionCheck = vI[[i]]):
namespace ‘vctrs’ 0.2.0 is already loaded, but >= 0.2.1 is required
I would appreciate it if you could share experience on this one.
p.s: I tried to use update.packages() it did not work either.

Resources