powered by
Calculate each string matrix (e.g., table body in matrix format) row's maximum number of lines broken to given a specific cell size
rtf_nline_matrix(text, strwidth, size)
a vector of integer (number of lines)
a matrix of string
a matrix of string width in inches
a matrix of cell size in inches
#' @section Specification:
The contents of this section are shown in PDF user manual only.
text <- matrix("this is a sentence", nrow = 2, ncol = 2) strwidth <- matrix(6:9, nrow = 2) size <- matrix(1:4, nrow = 2) r2rtf:::rtf_nline_matrix(text = text, strwidth = strwidth, size = size)
Run the code above in your browser using DataLab