'Rstudio sometimes freezes a few seconds after opening or entering RMD files

Rstudio intermittently freezes a few seconds after opening an RMD file, or (in cases where the RMD file was loaded on startup), after making it the active thing in the viewer. Deleting/replacing the .nd file associated with the rmd does not prevent this. However, opening the RMD in another text editor (such as Sublime) and copying all text to a new file which is then saved as an RMD does. However, as soon as the file is saved in Rstudio and opened again, the problem may recur.

Is there a workaround or solution to this issue?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source