Closed ATpoint closed 2 years ago
I believe RStudio configuration files are located in user directories such as ~/.rstudio
in the past and ~/.config/rstudio
now.
What version of RStudio are you using?
In any case, it is recommended to check the files generated in the above directories after changing the settings in RStudio.
Thanks for the prompt reply. It's RStudio Server 2021.09.0 Build 351
from the current Rocker 4.1.2.
In that case, the desired file should be /home/rstudio/.config/rstudio/rstudio-prefs.json
.
By the way, that version of the rocker image issue is not tracked in this repository, but in https://github.com/rocker-org/rocker-versioned2. Please check the README.
Sorry for posting in the wrong repo. The answer that works for me was to copy a user-settings
file like
$ cat user-settings
save_workspace="never"
always_save_history="false"
reuse_sessions_for_project_links="true"
restore_source_documents="false"
wrap_tab_navigation="false"
load_workspace="false"
initial_working_directory="~"
restore_last_project="false"
editor_theme="Idle Fingers"
soft_wrap_rmd_files="false"
rmd_chunk_output_inline="false"
auto_run_setup_chunk="false"
hide_console_on_chunk_execute="false"
posix_terminal_shell="bash"
...into /home/rstudio/.rstudio/monitored/user-settings/
with a Dockerfile like:
$ cat Dockerfile
FROM rocker/rstudio:4.1.2
COPY user-settings /home/rstudio/.rstudio/monitored/user-settings/user-settings
which then makes RStudio use these settings. Thanks for your time!
Hi, I am wondering how to make Rocker respect RStudio setting defined in
rstudio-prefs.json
.That file is:
and based on what I read in previous issues I do in the Dockerfile:
...but this doesn't seem to do the trick as each a) RStudio does not use these settings and b) RStudio seems to favour local
.Rhistory
and.Rprofile
leftovers (if they exist) when running:Based on https://github.com/rocker-org/rocker-versioned/issues/79 the autosave and auto-restore should be off, is it? But that's what I see:
Any pointers what I am doing wrong? Thanks!