anyMultibyteUTF8Characters | R Documentation |
This function is used by tikzDevice to check if an incoming string contains multibyte UTF-8 characters
anyMultibyteUTF8Characters(string, encoding = "UTF-8")
string |
A character vector of length 1 (a string). |
encoding |
Unused. |
This function searches through the characters in the given string, if any of
the characters in the string are more than one byte then the function
returns TRUE
otherwise it returns FALSE
.
The function will assume an input encoding of UTF-8 but will take any specified encoding into account and will convert from the specified encoding to UTF-8 before doing any checks
A boolean value
Cameron Bracken cameron.bracken@gmail.com
tikz()
# TRUE
anyMultibyteUTF8Characters('R is GNU ©, but not ®')
# FALSE
anyMultibyteUTF8Characters('R is GNU copyright but not restricted')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.