library plm not able to load/install - r

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)

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")

Trouble use library(agricolae)

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?

The shiny package will not load after installation

I tried:
install.packages('shiny')
library(shiny)
Got the following message:
Error: package or namespace load failed for ‘shiny’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘htmltools’
In addition: Warning message:
package ‘shiny’ was built under R version 4.0.5
I tried starting over and loading htmltools and then also the following error:
Error in library(htmltools) : there is no package called 'htmltools'

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.

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

Resources