ReporteRs v0.7.6

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.5

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

Details

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