rtf_rich_text: Text to Formatted RTF Encode

View source: R/rtf_rich_text.R

rtf_rich_textR Documentation

Text to Formatted RTF Encode

Description

Text to Formatted RTF Encode

Usage

rtf_rich_text(
  text,
  theme = list(.emph = list(format = "i"), .strong = list(format = "b"))
)

Arguments

text

Plain text.

theme

Named list defining themes for tags. See rtf_text() for details on possible formatting.

Specification

The contents of this section are shown in PDF user manual only.

Examples

rtf_rich_text(
  text = paste(
    "This is {.emph important}.",
    "This is {.strong relevant}.", "This is {.zebra ZEBRA}."
  ),
  theme = list(
    .emph = list(format = "i"),
    .strong = list(format = "b"),
    .zebra = list(color = "white", background_color = "black")
  )
)

Merck/r2rtf documentation built on April 18, 2024, 11:51 a.m.