Hello I've been trying to use the library package "adegenet" and while the package seems to be installed when I try to run the library("adegenet") I get an error message telling me that some problem has occured with ade4. Here is the code up to the error message:
Package ‘adegenet’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\esteb\AppData\Local\Temp\RtmpGm98iy\downloaded_packages
> library("adegenet")
Loading required package: ade4
Error: package or namespace load failed for ‘ade4’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘vctrs’ 0.2.0 is being loaded, but >= 0.2.1 is required
Error: package ‘ade4’ could not be loaded
In addition: Warning messages:
1: package ‘adegenet’ was built under R version 3.6.3
2: package ‘ade4’ was built under R version 3.6.3
I couldn't quite find anything online to explain what's going on here. Any help appreciated
Related
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.
I´m having problems with the "rstatix" package installation. When the installation finishes and I try to run the library, I get this message:
Error: package or namespace load failed for ‘rstatix’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘vctrs’ 0.2.0 is being loaded, but >= 0.3.2 is required
In addition: Warning message:
package ‘rstatix’ was built under R version 3.6.3
Have any of you dealt with this problem before? How did you solve it? Thanks!
I think the "vctrs" package should be >= 0.3.2. Try to update the "vctrs" package to the latest one.
# below is the command to update the package
install.packages("vctrs")
# if you want to update all packages
update.packages()
After this try to import your 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)
I keep getting this error message in R when loading new packages and libraries (see below). I think it has something to do with downloading the lattice package a few days ago but I have no idea how to uninstall this package or if that is even the issue.
library(raster)
Loading required package: sp
Error: package or namespace load failed for ‘sp’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘lattice’
Error: package ‘sp’ could not be loaded
In addition: Warning messages:
1: package ‘raster’ was built under R version 3.5.3
2: package ‘sp’ was built under R version 3.5.2
I tried using remove.packages("lattice") but I am getting this message:
remove.packages("lattice")
Removing package from ‘C:/Users/schubba/OneDrive - Emory University/Documents/R/R-3.5.1/library’
(as ‘lib’ is unspecified)
Error in remove.packages : there is no package called ‘lattice’
I get the following error when I try to load ggplot2. I tried to uninstall scales and reinstall it but for some reason R can't find the package when I want to remove the package...
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘scales’ 0.2.5 is already loaded, but >= 0.3.0 is required
In addition: Warning message:
package ‘ggplot2’ was built under R version 3.2.3
Error: package or namespace load failed for ‘ggplot2’
I had the same problem, I just install again ggplot2 and everything worked again. It installed also scales 0.4.2, so it solved the problem by itself.