ReporteRs-package
ReporteRs: a package to create document from R
ReporteRs is an R package for creating Microsoft (Word docx and Powerpoint pptx) and html documents.
Details
Package: | ReporteRs |
Type: | Package |
Version: | 0.4 |
Date: | 2014-03-13 |
License: | GPL (>= 3) |
LazyLoad: | yes |
To get an r document object:
docx
Create a Microsoft Word document objectpptx
Create a Microsoft PowerPoint document objecthtml
Create an HTML document object
The following functions can be used whatever the output format is (docx, pptx, html).
addTitle
Add a titleaddTable
Add a tableaddFlexTable
Add a table (new)addPlot
Add plotsaddImage
Add external imagesaddParagraph
Add paragraphs of textwriteDoc
Write the document into a file or a directory
Note that html is experimental.
Default values:
With ReporteRs, some options can be used to reduce usage of some parameters:
ReporteRs-default-font
Default font family to use (default to "Helvetica"). This will be used as default values for argumentfontname
ofaddPlot
and argumentfont.family
ofpot
.ReporteRs-fontsize
Default font size to use (default to 11). This will be used as default values for argumentpointsize
ofaddPlot
and argumentfont.size
ofpot
.ReporteRs-locale.language
language encoding (for html objects). Default to "en".ReporteRs-locale.region
region encoding (for html objects). Default to "US".
example:
options(ReporteRs-fontsize=10, ReporteRs-default-font="Arial")