Best Quarto framework

Hi Guys!
Just a question over here. I am working on a quarto presentation, but I find myself in the middle of something relevant. I find a bit messy to have both the data analysis code and the presentation code required in the same file. This because I have to recall several times variables names, plots and other things.
Can you please help me with a framework to work around this situation? It will be awesome to have a way to have an r script in a file and call it the quarto file. How can I do that?
Regards

If the R code is in a file foo.rmd all you need to do is put a code block in the quarto with the single command

source("foo.rmd")
1 Like