FlexRow: Row object for FlexTable

Description Usage Arguments See Also Examples

View source: R/FlexRow.R

Description

Create a representation of a row that can be inserted in a FlexTable. For internal usage.

Usage

1
2
FlexRow(values, colspan, text.properties = textProperties(),
  par.properties = parProperties(), cell.properties = cellProperties())

Arguments

values

Optional. a character vector to use as text content, the row will contain as many cells as there are in values.

colspan

integer Optional. vector specifying for each element the number of columns to span for each corresponding value (in values).

text.properties

Optional. textProperties to apply to each cell. Used only if values are not missing.

par.properties

Optional. parProperties to apply to each cell. Used only if values are not missing.

cell.properties

Optional. cellProperties to apply to each cell. Used only if values are not missing.

See Also

FlexTable, alterFlexRow , addHeaderRow, addFooterRow

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if( check_valid_java_version() ){
cell_fp <- cellProperties(background.color="#527578")
# example with characters ----
headerRow <- FlexRow( c("col 1", "col 2"), cell.properties = cell_fp )
# example with FlexCell ----
cell_fp <- cellProperties(background.color="#527578")
headerRow <- FlexRow()
headerRow[1] <- FlexCell( "col 1", cell.properties = cell_fp )
headerRow[2] <- FlexCell( "col 2", cell.properties = cell_fp )
}

davidgohel/ReporteRs documentation built on March 23, 2020, 11 p.m.