Wrap a string in double quotes, e.g., for displaying character values in messages.

dquote(x)

Arguments

x

A character vector

Default value

none

Value

If the input is NULL, the text "NULL" is returned. Otherwise, the input in double quotes is returned.

See also

Helpers for working with Quotes and Quoting: backquote(), enumerate(), squote()