Skip to content

Commit

Permalink
refactor: install brms and mapproj from conda
Browse files Browse the repository at this point in the history
  • Loading branch information
adamblake committed Feb 5, 2024
1 parent 02265be commit ee41d97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
21 changes: 5 additions & 16 deletions datascience-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,8 @@ LABEL maintainer="CourseKata <[email protected]>"
# install cmdstan and related requests
RUN --mount=type=cache,target=${CONDA_DIR}/pkgs,uid=${NB_UID},sharing=locked \
mamba install --yes \
# "r-brms"
"r-bridgesampling" \
"r-brobdingnag" \
"r-colourpicker" \
"r-dt" \
"r-dygraphs" \
"r-inline" \
"r-nleqslv" \
"r-rcppparallel" \
"r-shinyjs" \
"r-shinythemes" \
"r-threejs" \
"r-xts" \
# "r-ggstatsplot"
"r-brms" \
# "r-ggstatsplot" \
"r-afex" \
# "r-bwstest" \
"r-desolve" \
Expand All @@ -88,6 +76,7 @@ RUN --mount=type=cache,target=${CONDA_DIR}/pkgs,uid=${NB_UID},sharing=locked \
"r-pbapply" \
# "r-pmcmrplus" \
"r-prismatic" \
"r-rcppgsl" \
"r-reshape" \
"r-rmpfr" \
# "r-statsexpressions" \
Expand All @@ -98,15 +87,15 @@ RUN --mount=type=cache,target=${CONDA_DIR}/pkgs,uid=${NB_UID},sharing=locked \
# "r-rethinking"
"r-coda" \
"r-digest"
# "r-rstanarm"

RUN R_REMOTES_UPGRADE="never" Rscript \
-e 'stan <- "https://mc-stan.org/r-packages/"' \
-e 'remotes::install_cran("cmdstanr", repos = c(stan, getOption("repos")), dependencies = TRUE)' \
-e 'remotes::install_cran("cmdstanr"), repos = c(stan, getOption("repos")), dependencies = TRUE)' \
-e 'cmdstanr::install_cmdstan()' \
-e 'remotes::install_cran(c("brms", "ggstatsplot", "rstanarm"))' \
-e 'remotes::install_github("rmcelreath/rethinking")'


# install Python packages from wheels
ARG PIP_CACHE_DIR PIP_WHEEL_DIR PY_REQUIREMENTS
RUN --mount=type=bind,source="${PY_REQUIREMENTS}",target=/tmp/requirements.txt \
Expand Down
2 changes: 1 addition & 1 deletion r-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ RUN --mount=type=cache,target=${CONDA_DIR}/pkgs,uid=${NB_UID},sharing=locked \
"r-lmertest" \
"r-loo" \
"r-mapdata" \
# "r-mapproj" \
"r-mapproj" \
"r-marginaleffects" \
"r-modelsummary" \
"r-neuralnet" \
Expand Down

0 comments on commit ee41d97

Please sign in to comment.