-
I do my raw work in an R script. Consequently, all of my libraries and variables are loaded into the enviroment. I write my RMarkdown/Quarto document, synthesize the analysis and produce the report, referencing those objects that I have created. I still do some work in the RMarkdown/Quarto document. I never had any problem with this approach in RMarkdown. However, when I attempt it in Quarto, and I press the render button, it errors out. The most recent time I did this, I got a pop-up that stated:
In the terminal window (under Background Jobs), the error message displayed in this specific example is:
In this case, I am not sure why it is stating it cannot find However, I am still able to render my Quarto file the old RMarkdown way by typing render("Quarto_Doc.qmd") in my R script window. Does anyone have a similar issue and can anyone advise on how to get around? Thank |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Quarto is not executed in your current R session. Quarto, if needed, creates its own R session to compute the R code cells within the document. RMarkdown is fully embedded into R. RMarkdown is not supposed to use the global environment of an active R session. Note that when you use knitr/rmarkdown to render a Quarto document, you are not using Quarto at all. FYI, code cells/chunks of RMardown and Quarto documents can be executed in RStudio or VSCode straight from them. |
Beta Was this translation helpful? Give feedback.
Quarto is not executed in your current R session. Quarto, if needed, creates its own R session to compute the R code cells within the document.
RMarkdown is fully embedded into R.
RMarkdown is not supposed to use the global environment of an active R session.
Note that when you use knitr/rmarkdown to render a Quarto document, you are not using Quarto at all.
FYI, code cells/chunks of RMardown and Quarto documents can be executed in RStudio or VSCode straight from them.