Skip to content

Commit

Permalink
Issue 757 : Maintain state in RStudio (#767)
Browse files Browse the repository at this point in the history
* add rstudio setting to persist session state.
  • Loading branch information
vkumra-broad authored Feb 27, 2019
1 parent 94ac1b4 commit 81ec68b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/rstudio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ ENV RSTUDIO_HOME /etc/rstudio

ADD rserver.conf $RSTUDIO_HOME/rserver.conf

ENV RSTUDIO_USERSETTING /home/rstudio/.rstudio/monitored/user-settings/user-settings

RUN sed -i 's/alwaysSaveHistory="0"/alwaysSaveHistory="1"/g' $RSTUDIO_USERSETTING \
&& sed -i 's/loadRData="0"/loadRData="1"/g' $RSTUDIO_USERSETTING \
&& sed -i 's/saveAction="0"/saveAction="1"/g' $RSTUDIO_USERSETTING

EXPOSE $RSTUDIO_PORT

0 comments on commit 81ec68b

Please sign in to comment.