qc: Quoting version of c() array concatenate.

Description Usage Arguments Value See Also Examples

View source: R/qc.R

Description

The qc() function is intended to help quote user inputs. It is a convenience function allowing the user to elide excess quotation marks. It quotes its arguments instead of evaluating them, except in the case of a nested call to qc() itself. Please see the examples for typical uses both for named and un-named character vectors.

Usage

1

Arguments

...

items to place into an array

Value

quoted array of character items

See Also

qe, qae

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
a <- "x"
qc(a) # returns the string "a" (not "x")

qc("a") # return the string "a" (not "\"a\"")

qc(sin(x))  # returns the string "sin(x)"

qc(a, qc(b, c)) # returns c("a", "b", "c")

qc(x=a, qc(y=b, z=c)) # returns c(x="a", y="b", z="c")

qc('x'='a', wrapr::qc('y'='b', 'z'='c')) # returns c(x="a", y="b", z="c")

WinVector/wrapr documentation built on July 16, 2018, 9:12 a.m.