Skip to content

Commit 38ba439

Browse files
committed
create the rstudio config directory on the host if missing
1 parent be1262d commit 38ba439

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

version-stable-r-development.Rmd

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ e.g. `rstudio_4.4.1`.
111111
```{bash run}
112112
R_VER=4.4.1
113113
SHARED_DIR=RStudioProjects
114+
mkdir -p $HOME/.rstudio-docker/$R_VER
114115
docker run -d --restart=always \
115116
-p 127.0.0.1:$(echo $R_VER | sed 's/[.]//g')0:8787 \
116117
-e DISABLE_AUTH=true \
@@ -145,6 +146,7 @@ run_rstudio_ver() {
145146
"based on image "$BASE_IMAGE\
146147
"with shared volume "$SHARED_DIR
147148
docker pull $BASE_IMAGE &&
149+
mkdir -p $HOME/.rstudio-docker/$R_VER &&
148150
docker run -d --restart=always \
149151
-p 127.0.0.1:$PORT:8787 \
150152
-e DISABLE_AUTH=true \

0 commit comments

Comments
 (0)