Description Details Note Author(s) Examples
ReporteRs lets you create Microsoft Word, Microsoft PowerPoint and html documents.
To get an r document object:
docx Create a Microsoft Word document object
pptx Create a Microsoft PowerPoint document object
The following functions can be used whatever the output format is (docx, pptx).
addTitle Add a title
addFlexTable Add a table (new)
addPlot Add plots
addImage Add external images
addParagraph Add paragraphs of text
addRScript Add an r script
writeDoc Write the document into a file or a directory
ReporteRs comes with an object of class pot to let you
handle text output and format. You can associate a text with formats (font
size, font color, etc.), with an hyperlink or with a Footnote
as a reference note.
ReporteRs comes also with an object of class FlexTable
that let you design and format tabular outputs.
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 argument fontname of addPlot
and argument font.family of pot.
"ReporteRs-fontsize" Default font size to use (default to 11).
This will be used as default values for argument pointsize of addPlot
and argument font.size of pot.
"ReporteRs-list-definition" see list.settings.
"ReporteRs-locale.language" language encoding (for html objects). Default to "en".
"ReporteRs-locale.region" region encoding (for html objects). Default to "US".
Examples are in a donttest section as they are using font that may be not
available on the host machine. Default font is Helvetica, it can be modified
with option ReporteRs-default-font. To run an example with 'Arial'
default font, run first
options("ReporteRs-default-font" = "Arial")
David Gohel david.gohel@ardata.fr
1 | options("ReporteRs-fontsize"=10, "ReporteRs-default-font"="Helvetica")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.