Learn R Programming

officer (version 0.6.7)

rtf_doc: Create an RTF document object

Description

Creation of the object representing an RTF document which can then receive contents with the rtf_add() function and be written to a file with the print(x, target="doc.rtf") function.

Usage

rtf_doc(
  def_sec = prop_section(),
  normal_par = fp_par(),
  normal_chunk = fp_text(font.family = "Arial", font.size = 11)
)

Value

an object of class rtf representing an empty RTF document.

Arguments

def_sec

a block_section object used to defined default section.

normal_par

an object generated by fp_par()

normal_chunk

an object generated by fp_text()

See Also

read_docx(), print.rtf(), rtf_add()

Examples

Run this code
rtf_doc(normal_par = fp_par(padding = 3))

Run the code above in your browser using DataLab