My R session *sometimes* gets unconnected to RStudio with error Error in plot.new() : could not open file

Sometimes, but just sometimes, it occurs that RStudio hangs with an error saying something like:

Error in plot.new() : 
  could not open file '/home/akronix/workspace/dendro/.Rproj.user/shared/notebooks/6C8E21B0-Seasonality-aggregated/1/ACF53DEDf3599a33/cstbowif0viyo_t/_rs_chunk_plot_001.png'

If I go to that directory, indeed, there's no that png file.

And from then on, the R session gets completely disconnected to RStudio an I can't do anymore computations with R. So I have to do Session > Restart R and Run All Chunks to get back to work.

Nevertheless, very often if I run that chunk of code again after restarting R, I get the correct plot without any issues and I can work as normal. The most annoying thing is having to restart R and run all the code, since some parts of my code takes a lot of time to compute.

Someway similar to Intermittent file read error in R Markdown documents · Issue #9284 · rstudio/rstudio · GitHub

This is my RStudio version information:

RStudio 2023.12.1+402 "Ocean Storm" Release (4da58325ffcff29d157d9264087d4b1ab27f7204, 2024-01-29) for Ubuntu Focal
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2023.12.1+402 Chrome/116.0.5845.190 Electron/26.2.4 Safari/537.36

This topic was automatically closed 45 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.