When I tried to install "tm", I got the following:
> install.packages("tm")
Warning in install.packages :
unable to access index for repository https://cran.case.edu/src/contrib:
cannot open URL 'https://cran.case.edu/src/contrib/PACKAGES'
Installing package into ‘C:/Users/kgreen/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://cran.case.edu/src/contrib:
cannot open URL 'https://cran.case.edu/src/contrib/PACKAGES'
Warning in install.packages :
package ‘tm’ 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.case.edu/bin/windows/contrib/4.2:
cannot open URL 'https://cran.case.edu/bin/windows/contrib/4.2/PACKAGES'
So I downloaded Rtools for 4.2.3 and ran the installer (outside of Rstudio). Then I restarted RStudio and tried again, but it still can't see the Rtools. I see this question was asked before, but the answers are inappropriate ... something about setting the path to a bin directory (c:\rtools43\bin) that does not exist when I installed.
What am I missing?
I notice that the directory C:\rtools42\mingw64\bin is empty.
This seems like a connectivity issue, R is not being able to connect to the CRAN repository you have selected, these are some things to try.
Choose a different CRAN repository, RStudios repository is a good choice (http://cran.rstudio.com/) or you could choose one that is geographically closer to you.
Check if your internet connection has traffic restrictions of some kind, like a firewall, proxy server, etc. This is usually the case when you are at work or school.
Ah, very good. I'll try that, but I won't be able to do so until next week.
I have a temporary fix in that I went back to version 3.20 and that works for me (for whatever reason).
thanks
I'm facing same problem in R when I installed the latest version. And even I'm working on previous version of R by manually changing version in Rstudio. No One is giving proper reason as to why is latest version of R behaving this way. there has been updation several times but never faced such problem like in this latest version for installing packages
Thanks! I got back to this yesterday and forgot to try your suggestions. I just remembered this morning. Using different repositories didn't help in my case, though I see that was a good suggestion. However, your second suggestion, disabling the "Use secure download method for HTTP" worked fine! Thanks!