PreProc: Translation of text to XML

Description Usage Arguments Value Author(s) Examples

Description

odfTranslate converts some XML modified characters (such as &gt) to R code (>). This function also tries to mistake proof the code by anticipating characters that might be in UTF-8 encoding to R compliant characters (e.g. OpenOffice may convert some characters. For example, " will become a UTF-8 character, which R will choke on).

Usage

1
odfTranslate(x, toR = TRUE)

Arguments

x

a character vector

toR

a logical. If TRUE, the text is translated from XML to R. The opposite is done if FALSE.

Value

a character vector

Author(s)

Max Kuhn and Nathan Coulter

Examples

1
2
3
y <- "This is an &quot;interesting&quot; function."

cat(odfTranslate(y))


Search within the odfWeave package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.