Skip to content

Commit 81ec68b

Browse files
authored
Issue 757 : Maintain state in RStudio (#767)
* add rstudio setting to persist session state.
1 parent 94ac1b4 commit 81ec68b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docker/rstudio/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,10 @@ ENV RSTUDIO_HOME /etc/rstudio
2626

2727
ADD rserver.conf $RSTUDIO_HOME/rserver.conf
2828

29+
ENV RSTUDIO_USERSETTING /home/rstudio/.rstudio/monitored/user-settings/user-settings
30+
31+
RUN sed -i 's/alwaysSaveHistory="0"/alwaysSaveHistory="1"/g' $RSTUDIO_USERSETTING \
32+
&& sed -i 's/loadRData="0"/loadRData="1"/g' $RSTUDIO_USERSETTING \
33+
&& sed -i 's/saveAction="0"/saveAction="1"/g' $RSTUDIO_USERSETTING
34+
2935
EXPOSE $RSTUDIO_PORT

0 commit comments

Comments
 (0)