xm1
xm1

Reputation: 1765

Rstudio very slow when editing large code

RStudio is working well in general (v 2021.09.1 Build 372). But when a large code (7000 lines, a collection of functions) is being edited, even a click on the text or unfolding takes about 4 seconds to respond. I've tried to disable diagnostics, but the problem still occurs. Is there any setup that can help?

Upvotes: 1

Views: 627

Answers (1)

xm1
xm1

Reputation: 1765

It seems that disabling "use real-time spell-checking" solve the problem.
Before, I've tried other solutions, like disabling "Diagnostics", without results.
Besides, to avoid the slow debugging of that big file, when debug is needed, specific functions are copied to a temp.R and then "debugSourced"

Upvotes: 5

Related Questions