I get Error in installing tidyverse package - r

I tried different ways to install tidyverse package, but it shows this error
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
I'm trying to run ggpairs and I get this error at the end.
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘vctrs’ 0.2.0 is being loaded, but >= 0.2.1 is required
Is there something related with the version?

Related

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.

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.

Error when installing R package from Github

I am trying to install package from github by the codes below.
devtools::install_github("news11/survELtest")
But the error messages say,
in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘rlang’
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘digest’
rlang and digest are dependencies of package devtools. So, it is strange that the dependencies are not installed after installing devtools.

R programming, showing error

Whenever I am trying to load the tidyverse package in R it is showing the following error. How do I fix it?
library(tidyverse)
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()),
versionCheck = vI[[j]]) : namespace ‘tibble’ 1.3.0 is already
loaded, but >= 1.3.1 is required
Error: package or namespace load failed for ‘tidyverse’

Resources