RStudio Startup Issue on Open OnDemand

Hello all,

We’ve observed that RStudio hangs when loading large datasets/environments from previous sessions upon startup of a new RStudio session, therefore creating issues with users losing access to RStudio. The app itself would launch but it just remains as a blank page.

We’ve tried the option of setting the load workspace as false in .config/rstudio/rstudio-prefs.json as follows but it still did not work:

{
    "load_workspace": false,
    "initial_working_directory": "~",
    "posix_terminal_shell": "bash",
    "default_project_location": <project location>
}

This is what we see on the project level (.Rproj):

Version: 1.0
RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default
EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8
RnwWeave: Sweave
LaTeX: pdfLaTeX

Would anyone be able to advise on the best way to troubleshoot this recurring issue?

Hi and welcome!

It maybe restore_last_project you’re looking for. I found that by toggling the setting in the rstudio UI (below), but looking at the UI it may also be an .RData file in the workspace?

{
    "reuse_sessions_for_project_links": true,
    "jobs_tab_visibility": "shown",
    "restore_source_documents": false,
    "initial_working_directory": "~",
    "restore_last_project": false,
    "posix_terminal_shell": "bash"
}

Other than that you may be able to find big files in ~/.rstudio or ~/.rstudio-desktop depending on the version. Once you find them, there could be a way to safely delete them if that’s the course of action you’d want to take.