美文网首页R - tips
rmarkdown rmd 生成word 加分页符

rmarkdown rmd 生成word 加分页符

作者: 董八七 | 来源:发表于2020-11-18 18:12 被阅读0次

    借助2个包officedownofficer,在需要断页的地方加r run_pagebreak()


    output: word_document

    library(officedown)
    library(officer)
    

    Hello world on page 1

    `r run_pagebreak()`

    Hello world on page 2
    参考:[r - How to add a page break in word document generated by RStudio & markdown - Stack Overflow]https://stackoverflow.com/questions/24672111/how-to-add-a-page-break-in-word-document-generated-by-rstudio-markdown

    相关文章

      网友评论

        本文标题:rmarkdown rmd 生成word 加分页符

        本文链接:https://www.haomeiwen.com/subject/xmociktx.html