Can't install Rtools, tidyverse and other packages

I can't install Rtools and all major packages like tidyverse. I followed the installation instructions, but I can't insert the additional packages into the software. Can someone help me please?

I have always been helped by everyone in the Rstudio community.
I would like to contribute as well and will send you the code.

The simple answer is

  • uninstall R and Rtools,
  • download them from the official website,
  • and try to install them again.

If you are using Rstudio, then install Rstudio as well.

Then enter install.packages("tidyverse").

If it does not work, then check your network connection.
If you are using a company computer, it may be blocked by proxy settings.
Ask the department that manages the network.

Other ways to check.
Use library(httr) to check if R is connected to the network.

If you still can't get it to install properly,

  • download zip file the tidyverse page on github(and open zip)
  • and try devtools::install("your download directry path").

I would be happy to help you with your problem.

Thanks a lot for the help. I'm not experienced in R, but I had been using it normally with these functions until I had to install the software again with the new versions. Then there was this problem. About their guidelines follow the answers:

  • The official download is from this site: https://cran.r-project.org/ correct? I already uninstalled and installed and it didn't work.
  • About proxy settings, I'm using a personal computer. Using library(httr): Error in library(httr) : there is in the package called ‘httr’.
  • I went to tidyverse · GitHub and found several download options. What exactly would be the zip file you indicate?

Thanks

Before you do all that, please post the actual error message you get when you try to install tidyverse, with that information we could give you more specific advice.

install.packages("tidyverse")

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:

ttps://cran.rstudio.com/bin/windows/Rtools/
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 in install.packages :
package ‘tidyverse’ 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
Warning in install.packages :
unable to access index for repository

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.

And also, it seems you haven't installed RTools properly in your system.

Also note that RTools is NOT an R package, it's for your system so you'll need to download it from http://cran.r-project.org/bin/windows/Rtools/ and run the installer.
See Chapter 9 Set up an R dev environment | What They Forgot to Teach You About R for details.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.