在Rmarkdown中更改Knitr的Word模板
我正在使用Rstudio制作降价文档,我想将其转换为Word文档.我想更改编织到Word时自动生成的Word模板.例如,当我编织成文字时,我希望页边距变窄.
I'm using Rstudio to make a markdown document which I want to convert to a word document. I would like to change word template that is automatically generated when you knit to Word. For example, I want the margins to be narrow when I knit to word.
我使用的是Windows 64位操作系统和Windows 7.
I'm on a Windows 64 bit, with Windows 7.
我为此任务准备了视频.请查看是否有帮助.基本上,您可以从任意的R Markdown文档生成Word文档,然后在Word输出文档中修改样式,然后将该文档用作以后的R Markdown文档的模板.
I prepared a video for this task. Please see if it helps. Basically you generate a Word document from an arbitrary R Markdown document, then modify the styles in the Word output document, and use this document as the template for future R Markdown documents.