Rev 25118 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{sQuote}\alias{sQuote}\alias{dQuote}\title{Quote Text}\description{Single or double quote text by combining with appropriate single ordouble left and right quotation marks.}\usage{sQuote(x)dQuote(x)}\arguments{\item{x}{an \R object, to be coerced to a character vector.}}\details{The purpose of the functions is to provide a simple means of markupfor quoting text to be used in the R output, e.g., in warnings orerror messages.The choice of the appropriate quotation marks depends on both thelocale and the available character sets. Older Unix/X11 fontsdisplayed the grave accent (0x60) and the apostrophe (0x27) in a waythat they could also be used as matching open and close singlequotation marks. Using modern fonts, or non-Unix systems, thesecharacters no longer produce matching glyphs. Unicode provides leftand right single quotation mark characters (U+2018 and U+2019); ifUnicode cannot be assumed, it seems reasonable to use the apostropheas an undirectional single quotation mark.Similarly, Unicode has left and right double quotation mark characters(U+201C and U+201D); if only ASCII's typewriter characteristics can beemployed, than the ASCII quotation mark (0x22) should be used as boththe left and right double quotation mark.\code{sQuote} and \code{dQuote} currently only provide undirectionalASCII quotation style, but may be enhanced in the future.}\references{Markus Kuhn, \dQuote{ASCII and Unicode quotation marks}.\url{http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html}}\examples{paste("argument", sQuote("x"), "must be non-zero")}\keyword{character}