I cannot install package ISLR in R Version 4.3.3
I tried to install the package ISLR with the code install.packages("ISLR") and the following error message showed up. I have R version 4.3.3 .How can I fix this?
Show in New Window
Warning in install.packages :
cannot open compressed file 'C:\Users\merym\AppData\Local\Temp\RtmpEBmxV0/repos_https%3A%2F%2Fcran.rstudio.com%2Fsrc%2Fcontrib.rds', probable reason 'No such file or directory'
Warning in install.packages :
cannot open compressed file 'C:\Users\merym\AppData\Local\Temp\RtmpEBmxV0\file549027ca326c', probable reason 'No such file or directory'
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
no se puede abrir la conexión
Installing package into ‘C:/Users/merym/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
Warning in install.packages :
cannot open compressed file 'C:\Users\merym\AppData\Local\Temp\RtmpEBmxV0/repos_https%3A%2F%2Fcran.rstudio.com%2Fsrc%2Fcontrib.rds', probable reason 'No such file or directory'
Warning in install.packages :
cannot open compressed file 'C:\Users\merym\AppData\Local\Temp\RtmpEBmxV0\file54906397224e', probable reason 'No such file or directory'
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
no se puede abrir la conexión
Warning in install.packages :
package ‘ISLR’ 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 :
cannot open compressed file 'C:\Users\merym\AppData\Local\Temp\RtmpEBmxV0/repos_https%3A%2F%2Fcran.rstudio.com%2Fbin%2Fwindows%2Fcontrib%2F4.3.rds', probable reason 'No such file or directory'
Warning in install.packages :
cannot open compressed file 'C:\Users\merym\AppData\Local\Temp\RtmpEBmxV0\file54905f302e65', probable reason 'No such file or directory'
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.3:
no se puede abrir la conexión
Many thanks,
María.
I tried the following codes:
install.packages("ISLR")
install.packages("ISLR" , repos="http://cran.us.r-project.org")
Read more here: Source link
