I can’t install any package on Rstudio!

Asked

Viewed 571 times

0

When I open the option Packages, in the console appears that phrase:

Aviso: unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/3.1* 

Even trying to install by clicking on Install, and later opening the box to put the package name, first when I put the first letter of the package does not show the options, and when I write the whole package name, for example, agricolae, the following message appears on the console:

> install.packages("agricolae")

Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/3.1
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/sori_/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)*

And so it happens with all the packages I try to install.

  • 1

    The current version of R is 4.0.2, please update your R. If for some reason you cannot do so, then you will need to install the packages manually. Download archived versions of the packages you want to install and follow the instructions of answers to an OS question. You also have to have the Rtools, see also this post from the OS.

  • Thank you for the reply! Could you tell me how I can update, please? Because I’ve uninstalled and uninstalled again, and haven’t solved the problem, is there another way to update? I’d like to try this first option first. Thank you!!

  • you are on that operating system?

  • Use of Windows 10

  • 1

    Already uninstalled and installed what? R? No need to uninstall if you are on Windows enough discharge torque of R 4.0.2 and install from it. Then download and install Rtools by following the link from my first comment. Packages should now install normally. Note: you only need Rtools if you have to install from source code, which should be the exception, the rule is that CRAN has binaries for Windows.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.