Package "jaccard" not installing properly - r

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.

Related

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?

Is there a solution for R giving an error message "error in loadnamespace" when installing a package?

When I attempt to open up the Tidyverse library after installing the package, the following error messages comes:
>library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘colorspace’
In addition: Warning message:
package ‘tidyverse’ was built under R version 3.6.3
I also tried to install the package color space using
install.packages("colorspace")
Exact same error messages shows as above. Please help!
p.sp. I installed Rtools40.
You can try install.packages("scales").
You can also check for the newest version using the update button in Rstudio.

Why am I getting an error while trying to load caret package?

I tried:
library(caret)
then I got the error:
Loading required package: ggplot2
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘rlang’ 0.3.0.1 is already loaded, but >= 0.3.1 is required
Error: package ‘ggplot2’ could not be loaded
In addition: Warning message:
package ‘ggplot2’ was built under R version 3.5.3
so I tried updating the ggplot2 using:
install.package("ggplot")
even after that I am getting the same error. my caret package is also updated.
I think you can try two things. One is updating your R version (and Rstudio version?). The other can be updating ggplot2 with dependencies:
install.packages('ggplot2', dependencies = TRUE)

R caret install error

library(caret)
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
object 'vI' not found
In addition: Warning message:
package ‘caret’ was built under R version 3.3.3
Error: package or namespace load failed for ‘caret’
I tried everything from re-installing R to deleting all the library folder but nothing helps.
At first, you need to install package lattice and ggplot2. Then install the caret package.
or, You can use the devtools library for installing the caret package.
install.packages("devtools")
library(devtools)
install_cran("caret")

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)

Resources