RStudio freezes upon opening a markdown file

I was done with my analyses and prepared to add just one more cool diagram to my markdown file using plotly - which seems to lead to a crash of plotly and then of RStudio. So I kill RStudio in the Windows task manager.

Now, each time I open RStudio, it will use 100% CPU before freezing again if I do not immediately close the incriminated markdown file within the first second and before RStudio attempts to render the different chunks. Obviously, whenever I open the file, the same happens. Similarly, a renamed copy of that file will be knitted to HTML, but RStudio crashes while displaying the results.

I guess I need to purge RStudio caches, but which? And how do I do this?

You might want to try Resetting RStudio Desktop's State

2 Likes