Trouble use library(agricolae) - r

I just updated the R version from 4.0.4 to 4.1.3.
I have successfully installed
install.packages("agricolae").
But, when I run the syntax
library(agricolae),
The output in RGUI shown:
Warning message: package ‘agricolae’ was built under R version 4.0.5.
Then, the output in RStudio shown:
Error: package or namespace load failed for ‘agricolae’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘magrittr’.
So, I tried to install the packages of "magrittr", but failed. The output in RStudio shown:
The system cannot find the path specified. make: \*\*\* \[pipe.o\] Error 1 ERROR: compilation failed for package 'magrittr'
* removing 'C:/Users/Anna/Documents/R/win-library/4.1/magrittr' Warning in install.packages : installation of package ‘magrittr’ had non-zero exit status\.
How can I install the package of agricolae?

Related

R package Error: package or namespace load failed for ‘reshape2’ in loadNamespace: there is no package called ‘magrittr’

I have installed install.packages("reshape2") on R 3.4.3
but when I try to use that library like
library(reshape2)
I get the below error
Error: package or namespace load failed for ‘reshape2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘magrittr’
In addition: Warning message:
package ‘reshape2’ was built under R version 3.4.4**
But I want reshape2 to run on R 3.4.3 only
Anyone know how to fix this?
Fixed by the below command:
install.packages("https://cran.r-project.org/src/contrib/Archive/magrittr/magrittr_1.5.tar.gz", repos = NULL, type="source")

Package "jaccard" not installing properly

here is the code I am using:
install.packages("jaccard")
library("jaccard")
The error code I receive is:
Error: package or namespace load failed for ‘jaccard’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘qvalue’
In addition: Warning message:
package ‘jaccard’ was built under R version 3.6.3
I try to install the package qvalue and receive the error:
Warning in install.packages :
package ‘qvalue’ is not available (for R version 3.6.2)
I've also tried installing jaccard and qvalue using the code:
install.packages("jaccard", repos="http://cran.rstudio.com/", dependencies=TRUE)
install.packages("qvalue", repos="http://cran.rstudio.com/", dependencies=TRUE)
None of this seems to work and I receive the same errors.

Error in installing rgl and shiny package

I am trying to do a scatter3d(y ~ x1+ x2), but I am getting the following error:
Loading required namespace: rgl
Failed with error: ‘there is no package called ‘shiny’’
Error in scatter3d(Vent ~ O2 + CO2) : rgl package missing
I have tried to install rgl in the following way:
install.packages("rgl", repos = c("http://rstudio.org/_packages", "http://cran.rstudio.com"))
install.packages("rgl", depositories = TRUE)
Getting this error:
Errore: package or namespace load failed for ‘rgl’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘shiny’
And if I try to install shiny in the same way that I did for rgl, I get the following
ERROR: dependency 'htmltools' is not available for package 'shiny'
* removing 'C:/Users/franc/Documents/R/win-library/3.5/shiny'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘shiny’ had non-zero exit status
ERROR: dependency 'shiny' is not available for package 'shinytest'
* removing 'C:/Users/franc/Documents/R/win-library/3.5/shinytest'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘shinytest’ had non-zero exit status
Does anyone know what is going on and how I can solve this?
Thank you in advance!

library plm not able to load/install

I am trying to install package called plm and i am getting the following error. I already have it installed and I am getting some messy error. any suggestions what I should do?
install.packages("plm", repos="http://R-Forge.R-project.org")
> Error in install.packages : Line starting '<!DOCTYPE HTML PUBLI ...' is malformed!
> library(plm)
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace ‘pbkrtest’ 0.4-2 is being loaded, but >= 0.4.4 is required
In addition: Warning message:
package ‘plm’ was built under R version 3.2.5
Error: package or namespace load failed for ‘plm’
install.packages("plm", dependencies = TRUE)

Can't install RCurl package in R 3.3.2

I am using Windows 10, 64 bit PC. I have R 3.3.2 installed on my system.
I have some work to do with the swirl package in R, so I installed it as well. But, while trying to loading "swirl" package in R library(swirl), system threw an error : package or namespace load failed for ‘swirl’ and a warning : Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘RCurl’.
I tried to install "RCurl" and it gave an error message : Packages which are only available in source form, and may need
compilation of C/C++/Fortran: ‘bitops’ ‘RCurl’
These will not be installed

Resources