install packages

Hello everyone,

I am new to R and i am trying to install the tidyverse package but the function install.packages("tidyverse") generates an error for me.
"Warning in install.packages : unable to access index for repository https://cran.rstudio.com/src/contrib:cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

I need assistant on resolving this.

Hi, some R packages need compilation. To enable this you have to separately install something called Rtools, https://cran.r-project.org/bin/windows/Rtools/ pick the one that is right for your R version and you should no longer have trouble install the tidyverse

1 Like

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.
  • Disable secure download setting.
  • 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.