How to update R in Rstudio anaconda - r

R in terminal (3.5.1) -i use Linux- is not the same version on RStudio Anaconda (3.5.0).
RStudio 1.1.456 is update.
> install.packages('devtools')
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 :
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 ‘devtools’ is not available (for R version 3.5.0)
So i can't use the updateR()

Related

Difficulty in installing packages

Following is the error message generated whenever I try to install any packages:
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 ‘shiny’ 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'

Unable to install R package library(psych)

library(psych)
Error in library(psych) : there is no package called ‘psych’
Warning: unable to access index for repository https://mirrors.ebi.ac.uk/CRAN/src/contrib:
cannot open URL 'https://mirrors.ebi.ac.uk/CRAN/src/contrib/PACKAGES'
Warning: unable to access index for repository https://mirrors.ebi.ac.uk/CRAN/src/contrib:
cannot open URL 'https://mirrors.ebi.ac.uk/CRAN/src/contrib/PACKAGES'
install.packages("psych", dependencies = FALSE)
Warning in install.packages :
unable to access index for repository https://mirrors.ebi.ac.uk/CRAN/src/contrib:
cannot open URL 'https://mirrors.ebi.ac.uk/CRAN/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:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/user/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://mirrors.ebi.ac.uk/CRAN/src/contrib:
cannot open URL 'https://mirrors.ebi.ac.uk/CRAN/src/contrib/PACKAGES'
Warning in install.packages :
package ‘psych’ is not available (for R version 3.4.3)
Warning in install.packages :
unable to access index for repository https://mirrors.ebi.ac.uk/CRAN/bin/windows/contrib/3.4:
cannot open URL 'https://mirrors.ebi.ac.uk/CRAN/bin/windows/contrib/3.4/PACKAGES'
Please, what can I do to get this resolved? thank you.

Fail to install packages in RStudio

I want to install package arulesViz but RStudio returned me this:
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:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/Jacque de l'est/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
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 ‘arulesViz’ 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.1:
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/PACKAGES'
How to solve this?
R needs Rtools to build packages from source--just download and install it. :)

R studio stopped working. Uninstall and re install but packages all cant be detected

I tried running a pacman package and found it could not be installed. I tried installing tidyverse package individually and it says error. Now R is not able to run since all packages cannot be installed.
Lastly, uninstalled R studio and re install but it is still facing an issue.
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'
Installing package into ‘C:/Users/Syed Ismail/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
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 ‘pacman’ 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.0:
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/PACKAGES'```

Error while trying to install package dplyr in RSTUDIO

I'm trying to install dplyr package in my RSTUDIO environment and getting below error.
install.packages("dplyr")
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
package ‘dplyr’ is not available (for R version 3.6.0)
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.6:
cannot open URL 'http://cran.rstudio.com/bin/windows/contrib/3.6/PACKAGES'
The same URL is manually accessible.

Resources