Skip to content

Commit cb0ec33

Browse files
committed
Add new R Studio common problem (startup)
1 parent 9b7675d commit cb0ec33

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/runjobs/ondemand/rstudio.md

+14
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,17 @@ This is why you have to answer **yes** to this *"Would you like to use a persona
5252
If you have an idea on how to make this happen, get in touch!
5353
- you need to properly stop your R session from within RStudio Server before you exit or you will receive Warnings after the next login
5454
- RStudio Server doesn't know about any SLURM environment variables. Use `system('nproc')` is a reliable way to determine how many cores are actually available to you. Please avoid using `parallel::detectCores()` in your code as it does not return the number of "allowed" cores correctly.
55+
56+
## Common problems
57+
58+
### R is taking longer to start than usual
59+
60+
Two of the most common session startup problems are (1) oversized global R environments, which take a long time to load into memory when the session is resumed, and (2) problematic code in `.Rprofile` which takes too long to run or throws errors during startup.
61+
62+
In order to help eliminate these variables as the cause of session startup issues, RStudio Server can start sessions in Safe Mode. This mode starts the session without running `.Rprofile` or restoring the global environment. If a session takes too long to start, the user will be given the option to restart a session in Safe Mode.
63+
64+
In some cases using safe mode shows the same issue. In this case the issue may
65+
be linked to a previous R session and may be fixed by removing the previously
66+
active session: `rm -r ~/.local/share/rstudio/sessions/active`.
67+
68+

0 commit comments

Comments
 (0)