ReporteRs v0.7.5

Microsoft Word, Microsoft Powerpoint and HTML Documents Generation

Create 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 an R package for creating Microsoft Word, Microsoft Powerpoint and HTML documents from R.

Usefull links:

  • Help pages: Documentation
  • if you have questions, use the mailing list: Mailing list
  • Report a bug: Bug report. If you report a bug, try to send a reproducible example and don't forget to send the result of

      sessionInfo()
    

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('davidgohel/ReporteRsjars')
devtools::install_github('davidgohel/ReporteRs')

Get the latest Windows binary packages:
ReporteRsjars 0.2ReporteRs 0.7.4

Getting Started

library(ReporteRs)

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

?ReporteRs
?addFlexTable
?addPlot
?addMarkdown
?addParagraph
?docx
?pptx
?bsdoc

License

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

Functions in ReporteRs

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

Details

Type Package
Date 2014-02-02
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)