| Line 121... |
Line 121... |
| 121 |
|
121 |
|
| 122 |
\code{\link{sQuote}} for quoting English text.
|
122 |
\code{\link{sQuote}} for quoting English text.
|
| 123 |
|
123 |
|
| 124 |
\code{\link{shQuote}} for quoting OS commands.
|
124 |
\code{\link{shQuote}} for quoting OS commands.
|
| 125 |
|
125 |
|
| 126 |
The \sQuote{R Language Definition} manual.
|
126 |
Section \manual{R-lang}{Tokens}.
|
| 127 |
}
|
127 |
}
|
| 128 |
\examples{%% NOTE: Quote the \ even "once more" !
|
128 |
\examples{%% NOTE: Quote the \ even "once more" !
|
| 129 |
'single quotes can be used more-or-less interchangeably'
|
129 |
'single quotes can be used more-or-less interchangeably'
|
| 130 |
"with double quotes to create character vectors"
|
130 |
"with double quotes to create character vectors"
|
| 131 |
|
131 |
|
| Line 187... |
Line 187... |
| 187 |
n2 <- "\U0126\U0119\U1114\U022d\U2001\U03e2\U0954\U0f3f\U13d3\U147b\U203c"
|
187 |
n2 <- "\U0126\U0119\U1114\U022d\U2001\U03e2\U0954\U0f3f\U13d3\U147b\U203c"
|
| 188 |
stopifnot(identical(nn, n2))
|
188 |
stopifnot(identical(nn, n2))
|
| 189 |
|
189 |
|
| 190 |
## Under systems supporting multi-byte locales (and not Windows),
|
190 |
## Under systems supporting multi-byte locales (and not Windows),
|
| 191 |
## \U also supports the rarer characters outside the usual 16^4 range.
|
191 |
## \U also supports the rarer characters outside the usual 16^4 range.
|
| 192 |
## See the R language manual,
|
- |
|
| 193 |
## https://cran.r-project.org/doc/manuals/r-release/R-lang.html#Literal-constants
|
192 |
## See the R language manual, RShowDoc("R-lang#Literal-constants"),
|
| 194 |
## and bug 16098 https://bugs.r-project.org/show_bug.cgi?id=16098
|
193 |
## and PR#16098 <https://bugs.r-project.org/show_bug.cgi?id=16098>.
|
| 195 |
## This character may or not be printable (the platform decides)
|
194 |
## This character may or not be printable (the platform decides)
|
| 196 |
## and if it is, may not have a glyph in the font used.
|
195 |
## and if it is, may not have a glyph in the font used.
|
| 197 |
"\U1d4d7" # On Windows this used to give the incorrect value of "\Ud4d7"
|
196 |
"\U1d4d7" # On Windows this used to give the incorrect value of "\Ud4d7"
|
| 198 |
|
197 |
|
| 199 |
## nul characters (for terminating strings in C) are not allowed (parse errors)
|
198 |
## nul characters (for terminating strings in C) are not allowed (parse errors)
|