首页 > 解决方案 > 安装 INLA 包的问题

问题描述

当我运行 '''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未找到'

谁能帮我理解?

标签: rpackager-inla

解决方案


看起来您同时遇到了网络错误 ( download length != reported length) 和某种安装错误。

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

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

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


推荐阅读