Skip to content

Commit

Permalink
create the rstudio config directory on the host if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
spoltier committed Jun 19, 2024
1 parent be1262d commit 38ba439
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions version-stable-r-development.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ e.g. `rstudio_4.4.1`.
```{bash run}
R_VER=4.4.1
SHARED_DIR=RStudioProjects
mkdir -p $HOME/.rstudio-docker/$R_VER
docker run -d --restart=always \
-p 127.0.0.1:$(echo $R_VER | sed 's/[.]//g')0:8787 \
-e DISABLE_AUTH=true \
Expand Down Expand Up @@ -145,6 +146,7 @@ run_rstudio_ver() {
"based on image "$BASE_IMAGE\
"with shared volume "$SHARED_DIR
docker pull $BASE_IMAGE &&
mkdir -p $HOME/.rstudio-docker/$R_VER &&
docker run -d --restart=always \
-p 127.0.0.1:$PORT:8787 \
-e DISABLE_AUTH=true \
Expand Down

0 comments on commit 38ba439

Please sign in to comment.