ReporteRs v0.6.6

Microsoft Word, Microsoft Powerpoint and HTML documents generation from R

An R package for creating Microsoft Word document (>=2007), Microsoft Powerpoint document (>=2007) and HTML documents from R. There are several features to let you format and present R outputs ; e.g. Editable Vector Graphics, functions for complex tables reporting, reuse of corporate template document (*.docx and *.pptx). You can use the package as a tool for fast reporting and as a tool for reporting automation. The package does not require any installation of Microsoft product to be able to write Microsoft files (docx and pptx).

Readme

ReporteRs

ReporteRs is a R package for creating Microsoft Word, Microsoft Powerpoint and HTML documents from R.

Usefull links:

Features

  • Create docx, pptx or html files with only a few lines of R code.
  • Add tables, plots, text or tables of contents into Word, PowerPoint and html documents.
  • Customize formatting of R outputs.
  • Design and format any complex table

Installation

Dependencies

Java (it has been tested with java version >= 1.6).

ReporteRs needs some R packages ; run the following script to install them if needed.

if( !require( rJava ) ) install.packages("rJava")
if( !require( ggplot2 ) ) install.packages("ggplot2")

CRAN

install.packages("ReporteRs")

Github

Get the latest release:

if( !require( devtools ) ) install.packages("devtools")
devtools::install_github('ReporteRsjars', 'davidgohel')
devtools::install_github('ReporteRs', 'davidgohel')

Get the latest Windows binary packages:
ReporteRsjars 0.2ReporteRs 0.6.3

Getting Started

library(ReporteRs)

example(docx) #run a complete and detailed docx example
example(pptx) #run a complete and detailed pptx example
example(html) #run a complete and detailed html example

?ReporteRs
?addFlexTable
?addPlot
?addParagraph
?docx
?pptx
?html

License

The ReporteRs package is licensed under the GPLv3. See COPYRIGHTS file in the inst directory for additional details.

Functions in ReporteRs

Name Description
RScript RScript object
Footnote Create a Footnote
addFlexTable.docx Insert a FlexTable into a docx object
addTable Add a table into a document object
addFlexTable.html Insert a FlexTable into an html object
addFooter.pptx Insert a footer shape into a document pptx object
addSection Add a section into a document object
borderDashed shortcut for dashed border
addFooterRow add footer in a FlexTable
addImage.pptx Insert an external image into a pptx object
spanFlexTableRows Span rows within columns
addPageBreak.docx Insert a page break into a docx object
addPageNumber Insert a page number into a document object
[<-.FlexRow modify FlexRow content
FlexCell Cell object for FlexTable
borderDotted shortcut for dotted border
textItalic shortcut for italic
addFlexTable Insert a FlexTable into a document object
addTable.docx Insert a table into a docx object
addDate.pptx Insert a date shape into a document pptx object
addSection.docx Insert a slide into a pptx object
addSubtitle Add a subtitle shape into a document object
addParagraph.docx Insert a paragraph into a docx object
addRScript.html Add R script into a html object
addPage Add a page into a document object
addParagraph.html Insert a paragraph into an html object
pot Piece of Text (formated text)
deleteBookmark delete a bookmark into a docx object
html Create an HTML document object representation
declareTitlesStyles.docx Set manually headers'styles of a docx object
raphael.html get HTML code from a plot
registerRaphaelGraph register Raphael plots
declareTitlesStyles Set manually headers'styles of a document object
as.html.FlexTable get HTML code from a FlexTable
addColumnBreak.docx Insert a column break into a docx section
FlexRow Row object for FlexTable
addRScript.pptx Add R script into a pptx object
addFlexTable.pptx Insert a FlexTable into a pptx object
textBold shortcut for bold
pptx Create Microsoft PowerPoint document object representation
deleteBookmarkNextContent delete first content after a bookmark into a docx object
addSubtitle.pptx Insert a addSubtitle shape into a pptx object
is.color color checking
chprop Change a formatting properties object
borderSolid shortcut for solid border
[<-.FlexTable alter FlexTable content and format
get.light.tableProperties get a 'lighter' tableProperties
as.html.RScript get HTML code from a RScript object
parProperties Paragraph formatting properties
writeDoc.pptx Write a pptx object in a pptx file
styles Get styles names of a document object
chprop.borderProperties Modify border formatting properties
addPage.html Insert a page into an html object
styles.docx Get styles names of a docx document
get.greenheader.tableProperties get a green header tableProperties
ReporteRs-package ReporteRs: a package to create document from R
addDate Insert a date into a document object
textBoldItalic shortcut for bold italic
addPlot Add a plot into a document object
addTitle Add a title into a document object
parRight shortcut for right alignment
addPageBreak Add a page break into a document object
setZebraStyle FlexTable rows zebra striping
addParagraph.pptx Insert a paragraph into a pptx object
add.plot.interactivity add interactivity on a plot
doc-list-settings format ordered and unordered lists
addImage Add an external image into a document object
docx Create Microsoft Word document object representation
setRowsColors applies background colors to rows of a FlexTable
addRScript Add R script into a document object
setFlexTableBorders change grid lines of a FlexTable
textNormal shortcut for default textProperties
addRScript.docx Add R script into a docx object
addFooter Insert a footer into a document object
setColumnsColors applies background colors to columns of a FlexTable
addPlot.docx Add a plot into a docx object
addTitle.html Insert a title into a html object
addHeaderRow add header in a FlexTable
borderNone shortcut for no border
add.pot add a paraggraph to an existing set of paragraphs of text
addTitle.docx Insert a title into a docx object
triggerPostCommand trigger post plot commands
addTitle.pptx Insert a title into a pptx object
FlexTable FlexTable creation
FontMetric Font metric
cellProperties Cell formatting properties
chprop.textProperties Modify text formatting properties
writeDoc Write a document object
setFlexTableWidths set columns widths of a FlexTable
addPlot.html Add a plot into an html object
addTOC Add a table of contents into a document object
addPlot.pptx Add a plot into a pptx object
addPostCommand add post plot commands
slide.layouts.pptx Get layout names of a pptx document
addTOC.docx Insert a table of contents into a docx object
light.table get a simple FlexTable from a dataset
borderProperties border properties object
data_ReporteRs Dummy dataset used in ReporterRs examples
get.default.tableProperties get default tableProperties
parCenter shortcut for centered alignment
pbc_summary pbc summary
addColumnBreak Add a column break into a section
+.pot pot concatenation
addImage.docx Add external image into a docx object
addImage.html Insert an external image into a html object
addPageNumber.pptx Insert a page number shape into a document pptx object
docx-bookmark docx bookmarks
addParagraph Add a paragraph into a document object
chprop.parProperties Modify paragraph formatting properties
dim.docx Get page layout dimensions of a Word document
addTable.html Insert a table into an html object
setFlexTableBackgroundColors applies background colors to cells of a FlexTable
addSlide.pptx Insert a slide into a pptx object
addSlide Add a slide into a document object
chprop.cellProperties Modify a cell formatting properties object
toc.options Set TOC options for a document object
print.docx print informations about an object of class docx.
addTable.pptx Insert a table into an pptx object
writeDoc.docx Write a docx object in a docx file
print.html print informations about an object of class html.
set_of_paragraphs Set of paragraphs of text
writeDoc.html Write a html object in a html file
toc.options.docx Set TOC options
as.html get HTML code
as.html.pot get HTML code from a pot
spanFlexTableColumns Span columns within rows
vanilla.table get a simple FlexTable from a dataset
textProperties Text formatting properties
parJustify shortcut for justified alignment
parLeft shortcut for left alignment
dim.pptx Get layout information on a PowerPoint slide
slide.layouts Get layout names of a document object
print.pptx print informations about an object of class pptx.
print.textProperties print formatting properties
tableProperties Table formatting properties
No Results!

Details

Type Package
Date 2014-10-26
License GPL-3
Copyright See file COPYRIGHTS.
SystemRequirements java (>= 1.6)
URL http://davidgohel.github.io/ReporteRs/index.html, http://groups.google.com/group/reporters-package
BugReports https://github.com/davidgohel/ReporteRs/issues

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/ReporteRs)](http://www.rdocumentation.org/packages/ReporteRs)