When I try to load 'ecospat' I find this problem:
> library(ecospat)
Error: package or namespace load failed for ‘ecospat’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘biomod2’ 4.1-2 is being loaded, but < 4.0 is required
So I have tried to load a 'biomod2' 3.5.1 version, but I can't because it's not available for my version of R (4.2.1)
> install.packages("D:/Descargas/biomod2_3.5.1")
Installing package into ‘C:/Users/danie/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘D:/Descargas/biomod2_3.5.1’ 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
Someone could help me with this problem?
You can install the biomod2_3.5.1 package using the following code
install.packages("https://cran.r-project.org/src/contrib/Archive/biomod2/biomod2_3.5.1.tar.gz",
repo=NULL, type="source")
Related
Yesterday I loaded tidyverse` as usual, but not I get the following error:
library(tidyverse)
Warning: package ‘tidyverse’ was built under R version 4.1.3Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): namespace ‘cli’ 3.1.0 is already loaded, but >= 3.4.1 is required
I already updated my packages.
Also, I have tried the following:
remove.packages("tidyverse")
install.packages("tidyverse")
remove.packages("rlang")
install.packages("rlang")
But again, when I load library(tidverse) I get the same error.
At the end, I updated my R version (to 4.2.2) and changed it to RStudio manually: Tools -> Global Options -> R version.
I have written my code a-2 months ago and i try to reuse it, but the installation of packages fails and i become this warning:
install.packages("devtools")
library("devtools")
> library("devtools")
Loading required package: usethis
Error: package or namespace load failed for ‘usethis’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘cli’ 3.3.0 is already loaded, but >= 3.4.0 is required
Error: package ‘usethis’ could not be loaded
Although i reinstalled RStudio and R, tried to upadte all packages and install all their dependencies etc, it fails to install the updates/packages. Do you have any idea? Thank you in advance.
first you need to check from bottom right (Packages) and search for devtools if you found check if installed or not, also you can write ?devtools to see if help page show up for Package development tools for R, if you want to use the package you can write devtools:: and follow it with the name of function.
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.
library(ggplot2)
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘vctrs’
In addition: Warning message:
package ‘ggplot2’ was built under R version 3.6.3
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 ‘vctrs’
In addition: Warning message:
package ‘dplyr’ was built under R version 3.6.3
I just looked up at Cran, whether vctrs 0.3.4 exists and it looks like version 0.3.4 only exists for macOS. As I can see from the URL you have posted in the comments you're using the OS Windows. And for Windows only vctrs 0.3.3 exists.
So my suggestion (little bit ugly but well...): Download the zip-src of vctrs 0.3.3 manually and then you can choose in RStudio to install from the zip file you've downloaded.
Or my other suggestion you can use: install.packages.zip("zip-url-manually-copied"), for more look: https://rdrr.io/cran/installr/man/install.packages.zip.html.
Have a good day!
I got solved, I need to upgrade my R. Previously I am using version 3.6.0 and now I upgraded to 4.0.2, after upgrade everything works fine.
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