Learn R Programming

flextable (version 0.5.8)

set_caption: set caption

Description

set caption value in flextable

Usage

set_caption(x, caption, html_escape = TRUE)

Arguments

x

flextable object

caption

caption value

html_escape

should HTML entities be escaped so that it can be safely included as text or an attribute value within an HTML document.

Examples

Run this code
# NOT RUN {
ft <- flextable( head( iris ) )
ft <- set_caption(ft, "my caption")
ft
# }

Run the code above in your browser using DataLab