davidgohel / ReporteRs

Note that ReporteRs has been removed from CRAN the 16th of July 2018 and is not maintained anymore. please migrate to officer.
244 stars 44 forks source link

Custom Table Properties #136

Closed jovisudiardi closed 8 years ago

jovisudiardi commented 8 years ago

Hi, David. I have following through all your getting started guide. However I could not found a way to create my own persistent customized table, something like vanilla.table. If I use setup a properties to be used with dataframe XXXX, something like this code: MyFTable = FlexTable( data =XXXX, header.cell.props = cellProperties( background.color = "#C00000" ), header.par.props = parProperties( text.align= "center"), body.text.props = textProperties( font.size = 22 ) ) MyFTable The table were formatted properly, but if I want to RE-USE the same table properties for a different data set, say YYYY, using codes: MyFTable= FlexTable(YYYY) MyFTable the format for dataset YYYY is revert back to default setting.

Is there a way to define those properties only Once and then re-applied to different dataset, without hard-coded it every time for every table ?

Thanks for any pointers.

davidgohel commented 8 years ago

If you want to redefine default arguments of FlexTable, create a new function like vanilla.table.

jovisudiardi commented 8 years ago

Thank you for your input.