This function add 'officer' objects into an RTF document. Values are added as new paragraphs. See section 'Methods (by class)' that list supported objects.
rtf_add(x, value,...)## S3 method for class 'block_section'rtf_add(x, value,...)## S3 method for class 'character'rtf_add(x, value,...)## S3 method for class 'factor'rtf_add(x, value,...)## S3 method for class 'double'rtf_add(x, value, formatter = formatC,...)## S3 method for class 'fpar'rtf_add(x, value,...)## S3 method for class 'block_list'rtf_add(x, value,...)## S3 method for class 'gg'rtf_add( x, value, width =6, height =5, res =300, scale =1, ppr = fp_par(text.align ="center"),...)## S3 method for class 'plot_instr'rtf_add( x, value, width =6, height =5, res =300, scale =1, ppr = fp_par(text.align ="center"),...)
Arguments
x: rtf object, created by rtf_doc().
value: object to add in the document. Supported objects are vectors, graphics, block of formatted paragraphs. Use package 'flextable' to add tables.
...: further arguments passed to or from other methods. When adding a ggplot object or plot_instr , these arguments will be used by png function. See section 'Methods' to see what arguments can be used.
formatter: function used to format the numerical values
width: height in inches
height: height in inches
res: resolution of the png image in ppi
scale: Multiplicative scaling factor, same as in ggsave
ppr: fp_par() to apply to paragraph.
Methods (by class)
rtf_add(block_section): add a new section definition
rtf_add(character): add characters as new paragraphs
rtf_add(factor): add a factor vector as new paragraphs
rtf_add(double): add a double vector as new paragraphs