Export from qmd to rmd or ipynb #621
-
Does Quarto support export to rmd or ipnb? I suppose this is possible via pandoc and command line now, but it is not possible via Rstudio for example? The motivation for this question is for sharing code with people who doesn't use quarto. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Via the command line you can do To "export" to Rmd you can just rename the file to ".Rmd" (and make sure you aren't using Qmd specific features) |
Beta Was this translation helpful? Give feedback.
-
First of all thank you for developing quarto (playing with it gives me new strength to work on old projects ;) I would like to have an option to use quarto features and then strip these features to create a normal Rmd. I would be nice to have this stripping export option via quarto too. |
Beta Was this translation helpful? Give feedback.
You can actually use the Rmd file extension with Quarto if you want to. So a single Rmd file could be processed by both Quarto and rmarkdown (you'd just have a
format
options key for Quarto and anoutput
options key for R Markdown. Quarto features like advanced figure/page layout wouldn't work in Rmd but they also wouldn't break (note that both Quarto and R Markdown support YAML cell options).