Closed cderv closed 10 months ago
Done (since it's quite simple).
spin(text = c('#| echo: false','1+1'), format = 'qmd', knit = F)
I'm not sure if the quarto cli should support quarto render script.R
directly, or only let the R package quarto support it. I'll leave this decision to the quarto team.
Thanks @yihui !
if the quarto cli should support quarto render script.R directly,
I have opened https://github.com/quarto-dev/quarto-cli/issues/6660 for follow the discussion on this idea
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
From discussion at
Currently
format = "qmd"
is not possible.I think we could do
format = "qmd"
inspin()
, to do like .Rmd but putting chunk options in YAML probably. Withknit = FALSE
/report = FALSE
, it would produce a valid.qmd
document.We could also offer to run
quarto::quarto_render()
ifreport = TRUE
- this is related towhere we shared the idea of running
rmarkdown::render()
on .Rmd using R Markdown V2 and not expectingknit2html()
Storing the idea here. Any thoughts @yihui ?
We could also argue that
quarto convert myscript.R
could be used (or another comment) to build from a .R to a .qmd