gpt4 book ai didi

R Studio 安装 stringi 失败

转载 作者:行者123 更新时间:2023-12-04 10:30:36 38 4
gpt4 key购买 nike

我正在尝试调用 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 Tool -> Install packages... 中选择安装它,将 Install from: 更改为 Package Archive File 并选择您下载的文件。

    关于R Studio 安装 stringi 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47377196/

    38 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com