I am very new to R, and am having an issue installing adehabitatHR to run a home range analysis for work. When I ran the install.package("adehabitatHR") I got the same error as Anna3 did in her post: Installation of adehabitat
Stating: Warning in install.packages :
** package ‘adehabitatHR’ is not available for this version of R**
and WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
Regaurding the first error I went to the online archive and downloaded the package offline and it is now in a folder on my C Drive. Yet unsure how to now install it into the system library.
Reguarding the second error I am unsure what to do as I am not sure exactly what Rtool to download.
If you are unsure of your R version. Run the following code in your R session
R.Version()$major
R.Version()$minor
if you get major 4 then its one of the top 2 choices
depending on the minor
if you get major 3; then either go to the old versions ; or better yet, start over and gift yourself a more up-to-date version of R
I succesfully installed Rtools 4.2 through your link you gave me and I was able to download it which seemed to fix the error I was getting.
However I am still receiving the error (below) when I run the install.package(adehabitatHR). Not to mention I am also getting the same error when I try to install package rgdal, raster, and rgeos. All packages I need to run my home range analysis.
Warning in install.packages :
** unable to access index for repository https://cran.rstudio.com/src/contrib:** Installing package into ‘C:/Users/SStromer/AppData/Local/R/win-library/4.2’ (as ‘lib’ is unspecified) Warning in install.packages :
** unable to access index for repository https://cran.rstudio.com/src/contrib:** Warning in install.packages :
** package ‘adehabitatHR’ is not available for this version of R*
This seems like a connectivity issue, R is not being able to connect to the CRAN repository you have selected, these are some things to try.
Choose a different CRAN repository, RStudios repository is a good choice (http://cran.rstudio.com/) or you could choose one that is geographically closer to you.
Check if your internet connection has traffic restrictions of some kind, like a firewall, proxy server, etc. This is usually the case when you are at work or school.
Thank you so much for your help! This community is so helpful!
I got the adehabitatHR package to download. I used CRAN respository Oregon State Univeristy, and I do think it was my protected internet. I was on a VPN for work and logged out of that.
I tried all my other packages I needed, and they all downloaded as well.
Im so happy. Thanks again. I am sure I will be back!