Error: there is no package called ‘vctrs’ - r

When I try to run these lines, I keep getting the issue below- any way to resolve this?? Thanks!
pkgs<-c('lmerTest', 'ggplot2')
suppressMessages(lapply(pkgs, require, character.only = TRUE))
require(lme4)
library(lmerTest)
require(interactions)
library(ggplot2)
require(apaTables)
library(apaTables)
Error: package or namespace load failed for ‘lmerTest’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘vctrs’

Try to install vctrs from github and this helped in my case.
install.packages("vctrs", repos = "https://packagemanager.rstudio.com/cran/latest")

Related

tbl_regression from package gtsummary

install.packages("gtsummary")
library(gtsummary)
Error: package or namespace load failed for ‘gtsummary’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘glue’ 1.4.2 is already loaded, but >= 1.6.0 is required
I am trying to use the function tbl_regression but every time I type library(gtsummary), I get this message and a failure. How can I solve this problem?

getting an error while using the library(tidyverse)

getting the following error while trying to use library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): namespace ‘ggplot2’ 3.3.0 is being loaded, but >= 3.3.3 is required
I updated ggplot2 many times but still getting the error

Problems to load tidyverse and dplyr

When I try to load tidyverse I get this message:
library("tidyverse")
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘dplyr’ 1.0.2 is already loaded, but >= 1.0.3 is required
Además: Warning message:
package ‘tidyverse’ was built under R version 4.0.3

How to fix this error message related to library(forecast)

When executing library(forecast) in R I get this message:
Error: package or namespace load failed for ‘forecast’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
no package named ‘quadprog’ is found

>library(Rcmdr) #fails to load

I have tried the following steps:
install.packages("Rcmdr", dependencies=TRUE)
install.packages("knitr", dependencies=TRUE)
library(Rcmdr)
output for this step is below
Loading required package: RcmdrMisc
Error: package or namespace load failed for ‘RcmdrMisc’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘knitr’
Error: package ‘RcmdrMisc’ could not be loaded
I'm working in Rversion=3.4.1 & Rstudio=1.0.143

Resources