Slow appearance of text in RStudio console when run code

I'm using RStudio on macos. Rstudio was extremely slow running code until I managed to turn off constant knitting to an html file by changing a word at the start of the Rmd file from "notebook" to "document". But it is still slow putting output into the console. It appears to be writing quickly to the console until the buffer is full, then pausing for about a second (while it is presumably flushing the buffer to a file?) before continuing. And strangely enough, it executes all the code almost instantly and even though it is finished with execution, it is still taking a long time after execution to put the executed code into the console window.

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