Skip to content

Commit 70b1535

Browse files
committed
using GitHub as source for cmdstanr
1 parent bce1c39 commit 70b1535

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ R_SEED=100
77
RENV_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

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ RUN cd /usr/share/ \
3333

3434
ENV 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

4042
RUN install2.r --error --skipmissing --skipinstalled -n -1 \
4143
renv \

docker-compose.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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

3330
networks:
3431
default:

0 commit comments

Comments
 (0)