Good afternoon ,
I have a problem with install.packages , for example :
install.packages("caret")
Warning in install.packages :
unable to access index for repository cran.rstudio.com/src/contrib:
scheme not supported in URL 'cran.rstudio.com/src/contrib/PACKAGES'
Installing package into ‘C:/Users/Mouad/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository cran.rstudio.com/src/contrib:
scheme not supported in URL 'cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
package ‘caret’ is not available (for R version 3.5.0)
Warning in install.packages :
unable to access index for repository cran.rstudio.com/bin/windows/contrib/3.5:
scheme not supported in URL 'cran.rstudio.com/bin/windows/contrib/3.5/PACKAGES'
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.5:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.5/PACKAGES'
I tried without success :
options(repos='cran.rstudio.com/')
I think the source of pb is that Rtools isn´t properly installed :
Sys.which("make")
make
""
Thank you for help !
Related
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'
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.
this is the error which is showing whenever i am trying to download any new package
I have tried using CRANmirror() but still its not working
I am completely new to R
This is the entire error message in text format
install.packages("ggplot2")
Warning in install.packages :
unable to access index for repository https://cloud.r-project.org/src/contrib:
cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Installing package into ‘C:/Users/abc/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://cloud.r-project.org/src/contrib:
cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Warning in install.packages :
package ‘ggplot2’ is not available (for R version 4.0.2)
Warning in install.packages :
unable to access index for repository https://cloud.r-project.org/bin/windows/contrib/4.0:
cannot open URL 'https://cloud.r-project.org/bin/windows/contrib/4.0/PACKAGES'
Warning: unable to access index for repository https://cloud.r-project.org/src/contrib:
cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
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.
My university provides access to RStudio via VPN. I can access but I can't install packages I usually can install on my PC. I know it's broad question, but any ideas on what to do?
This is what I get when I try to install:
> install.packages("tm")
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
object 'status' not found
Installing package into ‘/sscc/home/w/wgm210/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
object 'status' not found
Warning in install.packages :
package ‘tm’ is not available (for R version 3.3.2)
> install.packages("tm", lib="/sscc/opt/R-3.3.2/lib64/R/library")
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
object 'status' not found
Warning in install.packages :
'lib = "/sscc/opt/R-3.3.2/lib64/R/library"' is not writable
Would you like to use a personal library instead? (y/n) y
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
object 'status' not found
Warning in install.packages :
package ‘tm’ is not available (for R version 3.3.2)
Ask your root user to make "/sscc/opt/R-3.3.2/lib64/R/library" path writable.
sudo chmod 777 /sscc/opt/R-3.3.2/lib64/R/library