Convert Objects to (Plain) Text
Converts an R object into a text representation.
toText(x, ...) ## Default S3 method: toText(x, ...)
x |
an object |
... |
arguments passed to methods |
The print
method is essentially equivalent to
cat(x, sep = "\n")
.
There is no restriction on encoding, so plain text does not necessarily mean ASCII. But current methods do not map into markup-representations.
A character vector (lines of text), possibly with a class attribute
text
.
Enrico Schumann
toText(c("a", "b", "c")) cat(toHTML(toText(c("a", "b", "c"))))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.