Dear Rstudio community, Please how have you solved this problem that is consistently asking to restart R session anytime you want to install packages? I am stressed out because it takes hours when you accept to restart, then still ask you to restart again. if you click "No", packages won't install. I have been battling to install "caret", "recipes", "metrics", "explore" for days now. I AM TIRED
The codes I used:
install.packages('explore',repos = ' CRAN - Package explore')
install.packages('recipes',repos = 'http://cran.rstudio.org')
install.packages("caret")
install.packages("caret", dependencies = TRUE)
.libPaths()
- ERROR: lazy loading failed for package 'tidyselect'
- removing 'C:/Users/LILIAN/Documents/R/win-library/4.0/tidyselect'
- restoring previous 'C:/Users/LILIAN/Documents/R/win-library/4.0/tidyselect'
Warning in install.packages :
installation of package ‘tidyselect’ had non-zero exit status
- ERROR: lazy loading failed for package 'tidyselect'
- removing 'C:/Users/LILIAN/Documents/R/win-library/4.0/tidyselect'
- restoring previous 'C:/Users/LILIAN/Documents/R/win-library/4.0/tidyselect'
Warning in install.packages :
installation of package ‘tidyselect’ had non-zero exit status
ERROR: dependency 'hardhat' is not available for package 'recipes' - removing 'C:/Users/LILIAN/Documents/R/win-library/4.0/recipes'
Warning in install.packages :
installation of package ‘recipes’ had non-zero exit status
-
Warning in install.packages :
package ‘explore’ is not available (for R version 4.0.0)
Warning in install.packages :
unable to access index for repository https://CRAN.R-project.org/package=explore/bin/windows/contrib/4.0:
scheme not supported in URL ' https://CRAN.R-project.org/package=explore/bin/windows/contrib/4.0/PACKAGES' -
Execution halted
ERROR: lazy loading failed for package 'tidyselect'
- removing 'C:/Users/LILIAN/Documents/R/win-library/4.0/tidyselect'
- restoring previous 'C:/Users/LILIAN/Documents/R/win-library/4.0/tidyselect'
Warning in install.packages :
installation of package ‘tidyselect’ had non-zero exit status
ERROR: dependency 'hardhat' is not available for package 'recipes' - removing 'C:/Users/LILIAN/Documents/R/win-library/4.0/recipes'
Warning in install.packages :
installation of package ‘recipes’ had non-zero exit status
The downloaded source packages are in
C:\Users\LILIAN\AppData\Local\Temp\RtmpADNJ4T\downloaded_packages’
Note that: I have updated all the packages I have.
closed and restarted my system several times.
please help me. Thank you