Quote Text

DESCRIPTION:

Put single or double quotation marks around text. These functions are provided to quote text to be used in output.

USAGE:

dQuote(x)
sQuote(x)

REQUIRED ARGUMENTS:

x
a S-PLUS object to be represented as a character string

VALUE:

a character vector where each element is a string enclosed in either single or double quotes.

DETAILS:

dQuote puts double quotes around text, and sQuote adds single quotes.

These functions emulate R's dQuote and sQuote functions. In S-PLUS only undirectional ASCII quotation style is provided, whereas in R localization information is considered.

SEE ALSO:

, (and warning), (and gettext).

EXAMPLES:

warning("The argument ", dQuote("names"), " must be a character vector.")
msg <- paste("The function", sQuote("dQuote"), "is used to put", sQuote("\""),
        "around a string.")
cat("lowercase letters: ", dQuote(letters), "\n")