R Studio 安装 stringi 失败
R Studio installing stringi fails
我正在尝试调用 knit
,它告诉我它需要 rmarkdown
的更新版本,它需要包 stringi
。
安装 stringi
时出现以下错误:
> install.packages("stringi")
Installing package into ‘C:/Users/matan/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
stringi 1.1.5 1.1.6 TRUE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/stringi_1.1.5.zip'
Warning in install.packages :
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/stringi_1.1.5.zip': HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/stringi_1.1.5.zip'
Warning in install.packages :
download of package ‘stringi’ failed
我该如何解决这个问题,这样我才能最终 knit
我的 .RMD
平静下来?
编辑(解决方案):
- 从
https://cran.r-project.org/web/packages/stringi/index.html
下载 windows 二进制文件(r-release:stringi_1.1.6.zip)
- 通过
> install.packages(".../Downloads/stringi_1.1.6.zip", repos = NULL, type = "source")
安装
最简单的解决方案是从 here 下载 .zip 或 .tar.gz 文件并选择安装RStudio 工具 -> 安装包...,将安装从:更改为打包存档文件 并选择您下载的文件。
我正在尝试调用 knit
,它告诉我它需要 rmarkdown
的更新版本,它需要包 stringi
。
安装 stringi
时出现以下错误:
> install.packages("stringi")
Installing package into ‘C:/Users/matan/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
stringi 1.1.5 1.1.6 TRUE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/stringi_1.1.5.zip'
Warning in install.packages :
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/stringi_1.1.5.zip': HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/stringi_1.1.5.zip'
Warning in install.packages :
download of package ‘stringi’ failed
我该如何解决这个问题,这样我才能最终 knit
我的 .RMD
平静下来?
编辑(解决方案):
- 从
https://cran.r-project.org/web/packages/stringi/index.html
下载 windows 二进制文件(r-release:stringi_1.1.6.zip)
- 通过
> install.packages(".../Downloads/stringi_1.1.6.zip", repos = NULL, type = "source")
安装
最简单的解决方案是从 here 下载 .zip 或 .tar.gz 文件并选择安装RStudio 工具 -> 安装包...,将安装从:更改为打包存档文件 并选择您下载的文件。