Learn R Programming

RSVGTipsDevice (version 0.7-3)

encodeSVGSpecialChars: Encode SVG special chars (ampersand, etc)

Description

Encode SVG special chars (ampersand, etc) as the appropriate XML encoding.

Usage

encodeSVGSpecialChars(x, sub.special = TRUE)

Arguments

x
A vector of character data to be encode.
sub.special
If FALSE, do not encode.

Value

  • The vector x with encodings as appropriate.

Details

The following substitutions are made: rl{ & & ' ' " " < < > > }