addFlexTable
From ReporteRs v0.5
by David Gohel
Insert a FlexTable into a document object
Insert a FlexTable into a document object
Usage
addFlexTable(doc, flextable, ...)
Arguments
- doc
document object
- flextable
the
FlexTable
object- ...
further arguments passed to other methods
Value
a document object
See Also
Examples
# NOT RUN {
data( data_ReporteRs )
myFlexTable = FlexTable( data = data_ReporteRs, span.columns="col1"
, header.columns=TRUE, row.names=FALSE )
myFlexTable[ 1:2, 2:3] = textProperties( color="red" )
myFlexTable[ 3:4, 4:5] = parProperties( text.align="right" )
myFlexTable[ 1:2, 5:6] = cellProperties( background.color="#F2969F")
myFlexTable = setFlexCellContent( myFlexTable, 3, 6, pot("Hello"
, format=textProperties(font.weight="bold") ) + pot("World"
, format=textProperties(font.weight="bold", vertical.align="superscript") ) )
doc = addFlexTable( doc, myFlexTable )
# }
Community examples
Looks like there are no examples yet.