Error when installing R package from Github - r

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.

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?

How to install plm package?

Even after install plm package, I am getting the following error how to resolve this issue?
library(plm)
Error: package or namespace load failed for ‘plm’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘Rdpack’

I am getting an error installing tidyverse on R studio

I am trying to install the tidyverse package, but I get the following error:
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘Rcpp’
I have done everything that I found, nothing seems to help. Thanks.

I get Error in installing tidyverse package

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?

Installing and putting packages in library

Does anybody know what this means and how do I fix it?
> library(dplyr) Error: package or namespace load failed for ‘dplyr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘Rcpp’
In addition: Warning message: package ‘dplyr’ was built under R version 3.4.

Resources