【问题标题】:Problems installing the INLA package安装 INLA 包的问题
【发布时间】:2021-03-14 09:19:38
【问题描述】:

当我运行 '''install.packages("INLA", repos=c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/testing") , dep=TRUE)''' 让我一直给出这个错误:

install.packages 中的警告: 无法打开 URL 'https://inla.r-inla-download.org/R/testing/bin/macosx/contrib/4.0/INLA_21.03.14-2.tgz':HTTP 状态为'404 Not Found'

谁能帮我理解一下?

【问题讨论】:

  • 为什么不试试稳定版呢? install.packages("INLA",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)。此 URL ('inla.r-inla-download.org/R/testing/bin/macosx/contrib/4.0/…) 似乎不正确。从外观上看,它应该指向INLA_21.03.14-3.tgz
  • 感谢您的评论。是的,我试过了,但下载在四分之一处停止,出现以下错误:安装包中的警告:下载长度 48332362 != 报告长度 185894595。下载错误。

标签: r package r-inla


【解决方案1】:

您似乎同时遇到网络错误 (download length != reported length) 和某种安装错误。

我建议尝试像这样直接从他们的GitHub repo 安装软件包(为此,您需要事先安装devtools)。

library("devtools")
devtools::install_github(repo = "https://github.com/hrue/r-inla", ref = "stable", subdir = "rinla", build = FALSE)

我已经在基于 Unix 的机器上对此进行了测试,它应该可以正常工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-20
    • 2021-05-26
    • 2014-01-22
    • 2017-09-10
    相关资源
    最近更新 更多