Learn R Programming

⚠️There's a newer version (0.8.10) of this package.Take me there.

ReporteRs

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

Get the latest Windows binary packages:
ReporteRsjars 0.2ReporteRs 0.6.9

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.

Copy Link

Version

Monthly Downloads

109

Version

0.6.9

License

GPL-3

Maintainer

David Gohel

Last Published

March 23rd, 2020

Functions in ReporteRs (0.6.9)

FlexCell

Cell object for FlexTable
addFlexTable

Insert a FlexTable into a document object
BootstrapMenu

Create a bootstrap DropDownMenu
DropDownMenu

Create a bootstrap DropDownMenu
addPage.html

Insert a page into an html object
addFlexTable.pptx

Insert a FlexTable into a pptx object
addColumnBreak.docx

Insert a column break into a docx section
addImage.docx

Add external image into a docx object
declareTitlesStyles.docx

Set manually headers'styles of a docx object
addPageBreak.docx

Insert a page break into a docx object
addDate

Insert a date into a document object
addImage.pptx

Insert an external image into a pptx object
addDate.pptx

Insert a date shape into a document pptx object
addJavascript

add javascript into a bsdoc object
addFooter

Insert a footer into a document object
addParagraph.bsdoc

Insert a paragraph into an bsdoc object
addParagraph.html

Insert a paragraph into an html object
as.html.FlexTable

get HTML code from a FlexTable
addSection.docx

Insert a slide into a pptx object
addPageBreak

Add a page break into a document object
spanFlexTableColumns

Span columns within rows
addTitle.bsdoc

Insert a title into a bsdoc object
addColumnBreak

Add a column break into a section
addPage

Add a page into a document object
FlexRow

Row object for FlexTable
addRScript

Add R script into a document object
addParagraph.pptx

Insert a paragraph into a pptx object
borderDotted

shortcut for dotted border
addRScript.bsdoc

Add R script into a bsdoc object
addFooterRow

add footer in a FlexTable
parRight

shortcut for right alignment
[<-.FlexRow

modify FlexRow content
addMarkdown.bsdoc

Add a markdown text or file into an bsdoc object
addFooter.bsdoc

Add text in footer of a bsdoc object
chprop.borderProperties

Modify border formatting properties
RScript

RScript object
Footnote

Create a Footnote
addFooter.pptx

Insert a footer shape into a document pptx object
addSubtitle.pptx

Insert a addSubtitle shape into a pptx object
deleteBookmark

delete a bookmark into a docx object
addParagraph

Add a paragraph into a document object
addMarkdown.docx

Add a markdown text or file into a docx object
addFlexTable.bsdoc

Insert a FlexTable into an bsdoc object
addTitle.docx

Insert a title into a docx object
add.pot

add a paraggraph to an existing set of paragraphs of text
cellProperties

Cell formatting properties
addFlexTable.docx

Insert a FlexTable into a docx object
FontMetric

Font metric
toc.options.docx

Set TOC options
addHeaderRow

add header in a FlexTable
as.html.RScript

get HTML code from a RScript object
addImage.html

Insert an external image into a html object
addParagraph.Footnote

Insert a paragraph into a Footnote object
addPlot.pptx

Add a plot into a pptx object
addSlide.pptx

Insert a slide into a pptx object
addRScript.docx

Add R script into a docx object
addSubtitle

Add a subtitle shape into a document object
addTOC

Add a table of contents into a document object
addPostCommand

add post plot commands
print.bsdoc

chprop

Change a formatting properties object
addIframe

Add an iframe into a document object
borderNone

shortcut for no border
parJustify

shortcut for justified alignment
addParagraph.docx

Insert a paragraph into a docx object
addTable.pptx

Insert a table into an pptx object
deleteBookmarkNextContent

delete first content after a bookmark into a docx object
dim.pptx

Get layout information on a PowerPoint slide
borderDashed

shortcut for dashed border
[<-.FlexTable

alter FlexTable content and format
FlexTable

FlexTable creation
html

Create an HTML document object representation
parCenter

shortcut for centered alignment
slide.layouts.pptx

Get layout names of a pptx document
addRScript.html

Add R script into a html object
addFlexTable.html

Insert a FlexTable into an html object
pptx

Create Microsoft PowerPoint document object representation
styles

Get styles names of a document object
chprop.cellProperties

Modify a cell formatting properties object
writeDoc

Write a document object
addTitle.pptx

Insert a title into a pptx object
spanFlexTableRows

Span rows within columns
vanilla.table

get a simple FlexTable from a dataset
addImage

Add an external image into a document object
get.default.tableProperties

get default tableProperties
addBootstrapMenu

add a BootstrapMenu into a bsdoc object.
ReporteRs-package

ReporteRs: a package to create document from R
addTitle

Add a title into a document object
borderSolid

shortcut for solid border
addPlot.docx

Add a plot into a docx object
addLinkItem

add an item in a BootstrapMenu or a DropDownMenu
addPlot

Add a plot into a document object
add.plot.interactivity

add interactivity on a plot
get.light.tableProperties

get a 'lighter' tableProperties
addTitle.html

Insert a title into a html object
doc-list-settings

format ordered and unordered lists
pot

Piece of Text (formated text)
set_of_paragraphs

Set of paragraphs of text
addIframe.bsdoc

Insert an iframe into a bsdoc object
addMarkdown.html

Add a markdown text or file into an html object
addPageNumber.pptx

Insert a page number shape into a document pptx object
addPageNumber

Insert a page number into a document object
addMarkdown

Add a markdown text or file
styles.docx

Get styles names of a docx document
borderProperties

border properties object
setZebraStyle

FlexTable rows zebra striping
bsdoc

Create an object representation of a bootstrap html document
+.pot

pot concatenation
docx-bookmark

docx bookmarks
addImage.bsdoc

Insert an external image into a bsdoc object
textBold

shortcut for bold
textBoldItalic

shortcut for bold italic
slide.layouts

Get layout names of a document object
addPlot.html

Add a plot into an html object
dim.docx

Get page layout dimensions of a Word document
pbc_summary

pbc summary
chprop.textProperties

Modify text formatting properties
print.docx

addRScript.pptx

Add R script into a pptx object
addTOC.docx

Insert a table of contents into a docx object
addTable

Add a table into a document object
addSection

Add a section into a document object
writeDoc.bsdoc

Write a bsdoc object in a html file
textProperties

Text formatting properties
addTable.docx

Insert a table into a docx object
writeDoc.docx

Write a docx object in a docx file
addTable.html

Insert a table into an html object
chprop.parProperties

Modify paragraph formatting properties
print.html

setRowsColors

applies background colors to rows of a FlexTable
addMarkdown.pptx

Add a markdown text or file into a pptx object
docx

Create Microsoft Word document object representation
is.color

color checking
toc.options

Set TOC options for a document object
addPlot.bsdoc

Add a plot into an bsdoc object
data_ReporteRs

Dummy dataset used in ReporterRs examples
raphael.html

get HTML code from a plot
light.table

get a simple FlexTable from a dataset
setFlexTableBackgroundColors

applies background colors to cells of a FlexTable
addSlide

Add a slide into a document object
declareTitlesStyles

Set manually headers'styles of a document object
as.html

get HTML code
as.html.pot

get HTML code from a pot
triggerPostCommand

trigger post plot commands
get.greenheader.tableProperties

get a green header tableProperties
parLeft

shortcut for left alignment
print.pptx

print.textProperties

print formatting properties
parProperties

Paragraph formatting properties
textItalic

shortcut for italic
setFlexTableBorders

change grid lines of a FlexTable
registerRaphaelGraph

register Raphael plots
setFlexTableWidths

set columns widths of a FlexTable
writeDoc.html

Write a html object in a html file
textNormal

shortcut for default textProperties
writeDoc.pptx

Write a pptx object in a pptx file
setColumnsColors

applies background colors to columns of a FlexTable
tableProperties

Table formatting properties