R Markdown、Knitr、Pandoc和Bookdown的功能之间有什么关系?
具体地说,在将带有嵌入式R代码的标记文档(例如.Rnw或.Rmd)转换为最终输出(例如.pdf或.html)时,这些包之间的“分工”是什么?如果使用Knitr来处理RMarkdown,那么rmarkdown包做了什么,它与markdown package有什么不同
我有一些广泛的结果表,我需要在一个(可悲的) word文档中分享。我注意到它们很适合A3格式。许多答案(How can I change paper size when using Knit PDF in RStudio?、Change paper size and orientation in an rmarkdown pdf、How to specify a customized paper size in r markdown、Change paper size and orientation in an rmarkdown pdf)解释了如何更改output:pdf_document
我正在创建一个包含从RMarkdown派生的rmarkdown::pdf_document格式的R包"mytemplate“(作为一个R脚本函数,它以报告作为输出,它调用header.tex文件):
report <- function() {
## location of resource files in the package
header <- system.file("resources/header.tex", package = "mytemplate")
## derives the style from d