Skip to content
Discussion options

You must be logged in to vote

Quarto runs R as part of its processing but also does a lot of other things, and that takes time.

I would say a fair comparaison would already be to compare with R run in a new background process.

> tictoc::tic()
> res <- callr::r_safe(function() {
+     params = list()
+     params$col_name = "cyl"
+     library(dplyr)
+     mtcars %>% select(params$col_name)
+     })
> tictoc::toc()
1.52 sec elapsed

Then there will be at least knitr and rmarkdown layer running, with a Pandoc conversion. This adds more second

> tictoc::tic()
> res <- callr::r_safe(function() {
+     rmarkdown::render("test2.qmd")
+     })
> tictoc::toc()
3.01 sec elapsed

Quarto does then do a lots of processing before an…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by RKonstantinR
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants