I can't install any packages in R using both R Console and RStudio. I'm trying to install
tm package, and received the warning messages.
Installing package into ‘/R/win-library/4.1’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session --- Warning: failed to download mirrors file (cannot open URL 'https://cran.r-project.org/CRAN_mirrors.csv'); using local file 'C:/PROGRA~1/R/R-41~1.1/doc/CRAN_mirrors.csv' 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' Warning: unable to access index for repository https://cloud.r-project.org/bin/windows/contrib/4.1: cannot open URL 'https://cloud.r-project.org/bin/windows/contrib/4.1/PACKAGES' Warning messages: 1: In download.file(url, destfile = f, quiet = TRUE) : InternetOpenUrl failed: '' 2: 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
I've unchecked the "User secure download method for HTTP" in RStudio (as suggested in this link), but it's still the same. RStudio is allowed in my laptop's firewall settings by default, but I just added R for Windows terminal front-end in the allowed apps. Still I get the same error.
R version 4.1.1 (2021-08-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19042)
I don't know what to do next. Many thanks.