![](/img/trans.png)
[英]Is there a way to have conditional markdown chunk execution in Rmarkdown?
[英]Is there some convenient way to convert rmarkdown to pandoc markdown?
我使用rstudio
編寫r-markdown
,但有時它與pandoc
markdown
支持不兼容(例如,數學。如果有一種方法可以將r-markdown
轉換為pandoc
markdown,則導出文章會很方便到pdf
, org
, rts
, latex
...
https://pandoc.org/似乎也沒有提到rmarkdown
支持。
我嘗試導出.html
格式的rstudio並使用pandoc將html文件轉換回markdown,但似乎不起作用。
實際上, pandoc
用於從r-markdown創建pdf和其他格式。 因此,存在一個具有pandoc
兼容markdown的中間文件。 您可以通過以下方式保留此文件:
rmarkdown::render("document.Rmd", output_format = "pdf_document", run_pandoc = FALSE)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.