代码之家  ›  专栏  ›  技术社区  ›  John Lawrence Aspden

如何从R生成文档(.rtf、.doc、.odt)

  •  17
  • John Lawrence Aspden  · 技术社区  · 14 年前

    从统计语言R生成一个包含图像的字处理器文件(最好是尽可能独立于平台的,但可以使用本地字格式)的最佳方法是什么?

    6 回复  |  直到 13 年前
        1
  •  13
  •   Gavin Simpson    14 年前

    标准 Sweave 引擎是一个选项,如果你可以处理乳胶-但我想这是拉伸“文字处理器文件”方面只是一个触摸!或者, odfWeave 是一个相关的包,为swave提供了一个新的引擎,它将与OpenOffice.org文档一起工作。

    还有其他的选择 Reproducible Research

        2
  •  4
  •   eliavs    14 年前

    R2wd 包裹?

        3
  •  4
  •   Matti Pastell    14 年前

    Here reStructuredText here 对于文档中包含的不同作者。

    还有 rst2wordml

        4
  •  3
  •   janattack    11 年前

    还值得一提的是: RTF package 虽然没有其他选项那么强大,但它的学习曲线却要小一些。

        6
  •  1
  •   Vincent Guyader    7 年前

    https://cran.r-project.org/web/packages/officer/index.html

    library(officer)
    doc <- read_docx() %>%
    body_add_par("A title", style = "heading 1") %>%
    body_add_par("Hello world!", style = "Normal") %>%
    body_add_par("centered text", style = "centered")
    print(doc, target = "body_add_par.docx" )