FlexCell: Cell object for FlexTable

Description Usage Arguments See Also Examples

View source: R/FlexCell.R

Description

Create a representation of a cell that can be inserted in a FlexRow. For internal usage.

Usage

1
2
FlexCell(value, colspan = 1, par.properties = parProperties(),
  cell.properties = cellProperties())

Arguments

value

a content value - a value of type character or pot or set_of_paragraphs.

colspan

defines the number of columns the cell should span

par.properties

parProperties to apply to content

cell.properties

cellProperties to apply to content

See Also

addFlexTable, addHeaderRow, addFooterRow

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
if( check_valid_java_version() ){
FlexCell( value = "Hello" )
FlexCell( value = "Hello", colspan = 3)
FlexCell( "Column 1",
	cell.properties = cellProperties(background.color="#527578")  )

# define a complex formatted text
mytext <- pot("Hello", format = textProperties(color = "blue") ) +
  " " +
  pot( "world", format = textProperties(font.size = 9) )
Fcell = FlexCell( mytext, colspan = 4 )

# define two paragraph and put them in a FlexCell
mytext1 <- pot("Hello", format = textProperties(color = "blue") )
mytext2 <- pot( "world", format = textProperties(font.size = 9) )
Fcell <- FlexCell( set_of_paragraphs( mytext1, mytext2 ) )
}

davidgohel/ReporteRs documentation built on Dec. 4, 2018, 5:10 p.m.