odfCat(..., sep = " ", trim = FALSE, digits = max(3, getOption("digits") - 3), nsmall = 0, width = NULL, na.encode = TRUE, scientific = NA)
format
format
format
format
format
format
odfCat
odfCat
is an analog to cat
and is useful for
producing output in user-defined functions. It converts its arguments to
character strings, concatenates them, separating them by the given
'sep=' string. It then sandwiches the text between
tags,
and then outputs them. Note that this will produce paragraphs and cannot
sequentially produce sentences within a paragraph.
cat
uses an internal function, so there will be some differences between cat
and odfCat
. For example, factors are naively converted to character and numeric data are converted to character.
Since the text is embedded in ODF tags escaped characters
(e.g. \n
) don't have any effect. Exceptions are single- and double-quotes.
The paragraph uses the current paragraph style. The document formatting.odt in the package's examples directory illustrates the process of changing the appearance of the paragraph.
cat
, format
odfCat("\"hello world\"")
odfCat("these are the first letters", letters[1:5])
odfCat("some random normal data:", rnorm(5))
Run the code above in your browser using DataLab