Cant Load library GT SUMMARY in r - r

Error: package or namespace load failed for ‘gtsummary’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘cli’ 3.1.0 is already loaded, but >= 3.1.1 is required
In addition: Warning message:
package ‘gtsummary’ was built under R version 4.1.3

Just try install.packages("cli") to update the package to the latest version.

Related

Error: package or namespace load failed for ‘midasml’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):

I am trying to download the midasml package. My R version is 4.2.0. When I install the package I get no errors. But when I try library(midasml) I get this error:
Error: package or namespace load failed for ‘midasml’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘mcGlobaloptim’
I found on the Internet that mcGlobaloptim is removed from the CRAN package. I tried to install it but it does not work and I get:
Warning in install.packages :
package ‘mcGlobaloptim’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
How can I solve this problem?

Error: package or namespace load failed for ‘devtools’ came up when loading devtools package

I successfully installed the devtools package, but when I wanted to load the package, this error came up:
library(devtools)
Error: package or namespace load failed for ‘devtools’ in
loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]): namespace ‘cli’ 3.0.1 is already loaded, but >= 3.1.0 is
required In addition: Warning message: package ‘devtools’ was built
under R version 4.1.2

Getting error with forecast library in R, what to do? I have re-installed the library but this error keeps coming

library(forecast)
Error: package or namespace load failed for ‘forecast’ 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 ‘forecast’ was built under R version 4.0.3

devtools in BlueSky Statistics

I'm trying to install this data package for the econometrics textbook of Hill et al (from GitHub) and it always returns with an error due to DevTools. BlueSky is using R 3.6.1.
The DevTools installattion shows error after executing:
install.packages(c('devtools'), lib='C:/Users/amrof/Documents/R/win-library/3.6')
library(devtools)
Error: package or namespace load failed for 'devtools' in
loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]): namespace 'cli' 1.1.0 is being loaded, but >= 2.0.2 is
required
devtools::install_git("https://github.com/ccolonescu/PoEdata")
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()),
versionCheck = vI[[j]]) : namespace 'cli' 1.1.0 is being loaded,
but >= 2.0.2 is required In addition: Warning message: In
memory.limit(17592186044415) : cannot decrease memory limit: ignored
Error:Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()),
versionCheck = vI[[j]]) : namespace 'cli' 1.1.0 is being loaded,
but >= 2.0.2 is required
I have successfully installed using this code in RStudio.
Hi there as the error suggesting your cli library version is 1.1.0 but for devtools to install you need to update cli library to 2.0.2. To achieve the same please install your cli library again by the below command
install.packages("cli")
Then try to install devtools again.

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