Keep source formatting word
# Create a word document to contain R outputsĭoc <- addTitle(doc, "Simple Word document", level=1) e.g : 1 for title1, 2 for title2, 3 for title3, etc.ĪddTitle() and addParagraph() functions can be used as follow : library(ReporteRs) level : an integer specifying the heading level.value : the text to add as a title or a paragraph.docx file format) using ReporteRs package.
Keep source formatting word how to#
The aim of this R tutorial is to show you how to easily and quickly export outputs (including data table, plots, paragraphs of text and R scripts) from R statistical software to a Microsoft Word document (. ReporteRs is Java-based solution, so it works on Windows, Linux and Mac OS systems. It can be also used to generate Word document from a template file with logos, fonts, etc.
Install and load the ReporteRs R package.