[R] Issue when trying to install or load packages in RStudio

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Fri May 13 16:35:11 CEST 2022


A) You are repeatedly referring to RStudio... if you have a problem with RStudio, it is off-topic here and most people won't know how to fix it. RStudio occasionally gets out of sync with R and (the majority of us) don't keep track of that status here.

Assuming the problem is with R (you confirm this by using R or RGui directly and seeing the same errors)... 

B) When the R error messages say they cannot find the index, then that means you either have the wrong CRAN mirror URL (there is a whole list of them you can try) or there is some kind of network storm that will blow over if you try again later.

C) Finally, Rtools is not an R package... you will never succeed installing Rtools using install.packages. Use your web browser to look on CRAN for Rtools42 software and download the corresponding Windows setup program and run it. You should read and follow the instructions [1]. I am pretty sure you will need to re-start R so it will find Rtools.

[1] https://cran.r-project.org/bin/windows/Rtools/rtools42/rtools.html

On May 13, 2022 6:38:29 AM PDT, Paul Bernal <paulbernal07 using gmail.com> wrote:
>Dear friends,
>
>Hope you are doing great. I have installed R version 4.2.0 and
>RStudio 2022.02.2 Build 485 "Prairie Trillium" Release (8acbd38b,
>2022-04-19) for Windows.
>
>Last week, I developed a model in RStudio and was able to install and load
>many packages, but now RStudio is behaving oddly.
>
>I get the following errors whenever I try installing packages(which was not
>happening to me last week):
>
>https://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 ‘Rtools’ 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
>https://cran.rstudio.com/bin/windows/contrib/4.2:
>  cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/PACKAGES
>'
>
>I try to install Rtools but was not able to.
>
>Any clues on what could be happening?
>
>Best regards,
>Paul
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.



More information about the R-help mailing list