In this page:
...
- Then press Enter. You will be redirected to a Jupyter Notebook page.
23. Start a Terminal session in IDAS.
- In the upper right corner of the page, click New / Terminal to start a bash session:
34. In Terminal, go to the directory where the active sessions are stored. This directory will change depending on the R version you are using.
...
Code Block | ||
---|---|---|
| ||
cd ~/.local/share/rstudio/sessions/active |
45. View the active sessions:
...
Code Block | ||
---|---|---|
| ||
grudderham@idas-research-grudderham:~/.rstudio/sessions/active$ ls -a . .. session-88cf35c4 |
56. Remove the active session(s) using the output from the previous step. Note that the name "session-88cf35c4" was in the output of the previous step.
Code Block | ||
---|---|---|
| ||
rm -r session-88cf35c4/ |
67. Restart your IDAS session using the steps here: https://wiki.uiowa.edu/display/hpcdocs/Using+IDAS#UsingIDAS-ShuttingdownanIDASinstance.
78. If this doesn't help, you may need to reset your RStudio's state using the steps here: Resetting RStudio.
...
It may be helpful to change the settings in your RStudio session, so that every time your RStudio session starts, it starts on a clean slate instead of loading previous workspace. Some users never changed this setting and that may be fine. However, issues may occur if you have very large objects in your previous workspace and RStudio struggles to load them.
In RStudio, select Tools -> Global Options -> uncheck the box “Restore .RData into workspace at startup”.
For more information about different settings in RStudio, please see this support article from RStudio/Posit: https://support.posit.co/hc/en-us/articles/200549016-Customizing-the-RStudio-IDE.
2. Saving your R objects
You may want to save certain R objects, especially if those objects took a long time to create with your code. You can selectively save important R objects with the R commands saveRDS() and readRDS().
- For more information about saveRDS() and readRDS(), see the R documentation at https://search.r-project.org/R/refmans/base/html/readRDS.html.
- For explanations and examples, also see section “D.4.1 Saving R Files” here: https://rstudio-education.github.io/hopr/dataio.html#r-files
...