Skip to content

Commit

Permalink
[docker] INLA 必须最后安装
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangyunHuang committed Dec 9, 2023
1 parent e1280db commit 4b68dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/install_r_packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ desc_df <- desc::desc_get_deps()
pkgs <- desc_df[desc_df$type != "Depends", "package"]

install.packages(pkgs = setdiff(pkgs, c("INLA", "cmdstanr", "plot2", "rjags")))
install.packages("INLA", repos = c(getOption("repos"), INLA = "https://inla.r-inla-download.org/R/stable"))
install.packages("cmdstanr", repos = c(getOption("repos"), STAN = "https://mc-stan.org/r-packages/"))
install.packages("plot2", repos = c(getOption("repos"), PLOT = "https://grantmcdermott.r-universe.dev"))
remotes::install_github(c("davidsjoberg/ggbump", "davidsjoberg/ggstream"))

# INLA 包含一些旧的动态链接库,最好放最后安装
install.packages("INLA", repos = c(getOption("repos"), INLA = "https://inla.r-inla-download.org/R/stable"))
# rjags and rstanarm can't be installed because Rocky Linux 9 doesn't have JAGS and Posit doesn't have rstanarm

0 comments on commit 4b68dc7

Please sign in to comment.