I'm not sure this is a "bug" per se, but a way in which a user, particularly a new user, can crash RStudio.
To replicate:
- Get a clean project (so you don't loose anything!)
- Create a new R Notebook
- Add an incomplete chunk option to the first code chunk:
```{r, fig.cap=}
plot(cars)
```
- Carry on working. Ignore error about missing argument if you try to preview notebook.
- Observe a crash! Might have to try running a line of code in a different code chunk.
The error on previewing is good but if you miss seeing it at the top of the editor pane and try to run a different chunk ... it all goes south.