安装 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 Not Found'

谁能帮我理解一下?

解决方法

您似乎同时收到网络错误 (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 的机器上测试过了,它应该可以正常工作。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...