Cannot save .R file while code is running

BLUF: RStudio save functionality is blocked by code running. Can this be avoided?


  • You modify an .R file in RStudio
  • You run the modified code
  • You cannot save the changes to the .R file until the run stops.
  • Sometimes you need to force-quit R/RStudio, and you may lose your changes because they didn't save.

Is there any way to configure RStudio so that text-file saves aren't blocked by code running?

This is a well-known limitation that we hope to resolve later this year. Lots more info here: Busy Session Causes Browser to Become Unresponsive · Issue #2038 · rstudio/rstudio · GitHub

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.