devtools in BlueSky Statistics - r

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.

Related

Cant Load library GT SUMMARY in 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.

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?

Not able to update packages

I am trying to run SIFT analysis in R but the following message is displayed:
Error : package or namespace load failed for ‘klaR’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘pillar’ 1.4.7 is being loaded, but >= 1.5.1 is required
I also updated the Pillar package, but I still get this error.
Could someone please help me understand?

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

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