File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ R_SEED=100
77RENV_PATHS_CACHE = /home/${ R_STUDIO_USER } /.local/share/renv/
88
99# Stan
10- CMDSTAN_VERSION = 2.32.1
10+ CMDSTAN_VERSION = 2.32.1
11+ CMDSTANR_VERSION = 0.5.3
Original file line number Diff line number Diff line change @@ -33,9 +33,11 @@ RUN cd /usr/share/ \
3333
3434ENV DOWNLOAD_STATIC_LIBV8 1
3535
36- RUN install2.r --error --skipmissing --skipinstalled -n -1 rstan
36+ RUN install2.r --error --skipmissing --skipinstalled -n -1 rstan remotes
3737
38- RUN Rscript -e 'install.packages("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))'
38+ ARG CMDSTANR_VERSION
39+
40+ RUN Rscript -e 'remotes::install_github( paste0("stan-dev/cmdstanr@v", Sys.getenv("CMDSTANR_VERSION")) )'
3941
4042RUN install2.r --error --skipmissing --skipinstalled -n -1 \
4143 renv \
Original file line number Diff line number Diff line change @@ -19,16 +19,13 @@ services:
1919 args :
2020 TIDYVERSE_TAG : $TIDYVERSE_TAG
2121 CMDSTAN_VERSION : $CMDSTAN_VERSION
22+ CMDSTANR_VERSION : $CMDSTANR_VERSION
2223 ports :
2324 - ${R_STUDIO_PORT}:8787
2425 mem_limit : 6g
2526 mem_reservation : 2g
2627 volumes :
2728 - ./r_home:/home
28- - r-packages-data:${RENV_PATHS_CACHE}
29-
30- volumes :
31- r-packages-data :
3229
3330networks :
3431 default :
You can’t perform that action at this time.
0 commit comments