Reputation: 23
I have come back to some old code from last year and I can't seem to install the MuMIn package. It keeps coming up with this error
install.packages("MuMIn")
Warning in install.packages : package ‘MuMIn’ 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
All my other packages are downloading. Not sure what to do? I have R version 4.1.1
EDIT
I have found code to download previous version of MuMIn package but I get this error.
> packageurl <- "http://cran.r-project.org/src/contrib/Archive/MuMIn/MuMIn_1.43.15.tar.gz"
> install.packages(packageurl, repos=NULL, type="source")
Installing package into ‘C:/****/****/****/****/R/win-library/4.1’
(as ‘lib’ is unspecified)
Error in download.file(p, destfile, method, mode = "wb", ...) :
'wget' call had nonzero exit status
(Have put ** to hide computer pathway)
Thanks.
Upvotes: 0
Views: 1490
Reputation: 226182
If you go to the package's CRAN page you'll see that it lists
Depends: R (≥ 4.2.0)
which is greater than your current version.
You can update your R version, or go back in the archives to install an older version without this dependency, e.g. remotes::install_version("MuMIn", "1.46.0")
Upvotes: 2