Calculate number of lines that a string vector (e.g., title, subline, footnote, source) broken to given a specific cell size
Usage
rtf_nline_vector(text, strwidth, size)
Arguments
- text
a vector of string
- strwidth
a vector of string width in inches
- size
a vector of cell size in inches
Value
a vector of integer (number of lines)
Specification
The contents of this section are shown in PDF user manual only.
Examples
r2rtf:::rtf_nline_vector(
text = c("title 1", "this is a sentence for title 2"),
strwidth = c(0.4, 2),
size = 0.5
)
#> [1] 1 6