Learn R Programming

drake (version 5.0.0)

drake_unquote: Remove leading and trailing escaped quotes from character strings.

Description

Quotes are important in drake. In workflow plan data frame commands, single-quoted targets denote physical files, and double-quoted strings are treated as ordinary string literals.

Usage

drake_unquote(x = NULL, deep = FALSE)

Arguments

x

character vector

deep

remove all outer quotes if TRUE and only the outermost set otherwise. Single and double quotes are treated interchangeably, and matching is not checked.

Value

character vector without leading or trailing escaped quotes around the elements

See Also

drake_quotes, drake_strings

Examples

Run this code
# NOT RUN {
x <- "'abcd'"
# Remove the literal quotes around x.
drake_unquote(x) # "abcd"
# }

Run the code above in your browser using DataLab