Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


In this page:

...

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”. 

Image preview



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().

...