Usually I don't notice a difference between the time of execution of a rnotebook chunk vs. console execution. But with my new company laptop, I'm noticing a difference within Rstudio but not vscode (using a .rmd file).
What could be causing the slower chunk execution in rnotebooks? I've noticed this delay across many experiments. It's very noticeable, whereas code is almost instant in vscode .rmd files
timein <- proc.time()
tibble(
x = 1:5000000,
y = 1,
z = x*0.5
)
timeout <- proc.time() - timein
print(timeout)
Rstudio rnotebook timing:
user system elapsed
0.16 0.05 2.81
Rstudio Console timing:
user system elapsed
0.13 0.02 0.16
Vscode rmd chunk timing:
user system elapsed
0.16 0.01 0.22