无法将软件包 tm 安装到 Rstudio 中

Unable to install package tm into Rstudio

提问人:elbillaf 提问时间:3/25/2023 最后编辑:Philelbillaf 更新时间:3/25/2023 访问量:114

问:

我正在运行 Rstudio 2022.12.0、R 4.2.3。

当我尝试安装“tm”时,我得到了以下内容:

 > 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'

所以我下载了 Rtools 4.2.3 并运行安装程序(在 Rstudio 之外)。 然后我重新启动了 RStudio 并再次尝试,但它仍然看不到 Rtools。 我看到这个问题以前被问过,但答案不合适......关于设置安装时不存在的 bin 目录 (c:\rtools43\bin) 的路径。

我错过了什么?

我注意到文件:C:\rtools42\mingw64\bin

为空。没有文件 C:\rtools42\bin

当我尝试版本时,情况确实如此

R TM Rtools

评论

0赞 elbillaf 3/25/2023
通过返回 R3.2.0,我有一个明显的临时修复

答: 暂无答案