to_rtf: Create RTF representing a huxtable

Description Usage Arguments Details Value Limitations See Also Examples

Description

These functions print or return an RTF character string.

Usage

1
2
3
4
5
6
print_rtf(ht, fc_tables = rtf_fc_tables(ht), ...)

to_rtf(ht, ...)

## S3 method for class 'huxtable'
to_rtf(ht, fc_tables = rtf_fc_tables(ht), ...)

Arguments

ht

A huxtable.

fc_tables

See rtf_fc_tables().

...

Arguments to pass to methods.

Details

RTF files use a single per-document table for colors, and one for fonts. If you are printing multiple huxtables in a document, you need to make sure that the font and color table is set up correctly and that the RTF tables refer back to them. See rtf_fc_tables().

  1. Prepare all the huxtables;

  2. Call rtf_fc_tables(), passing in all the huxtables;

  3. Print the rtfFCTables object in the RTF document header;

  4. Pass in the rtfFCTables object to each call to print_rtf.

Value

to_rtf returns a string representing an RTF table. The fc_tables attribute of the returned string will contain the fc_tables object that was passed in (or autocreated). print_rtf prints the string and returns NULL.

Limitations

See Also

Other printing functions: print_html(), print_latex(), print_md(), print_screen()

Examples

1

huxtable documentation built on May 15, 2021, 1:09 a.m.