Add single quotes to string.

quote(str)

Arguments

str

String.

Value

String surrounded by single quotes

Examples

dabr::quote("A")
#> [1] "'A'"
dabr::quote("l'A")
#> [1] "'l\\'A'"