When creating character vectors with several elements, it becomes a lot of quotes to type. cc provides a simple way to skip the quotes - but only for simple strings.
cc(...)
A character vector
Don't use cc with any special characters - only alphanumerics and no spaces supported. Also, remember that numerics are converted using as.character. Eg, this means that leading zeros are dropped.
cl
cc(a,b,`a b`)
#> [1] "a" "b" "a b"
cc(a,b,"a b")
#> [1] "a" "b" "a b"
## be careful with spaces and special characters
cc( d)
#> [1] "d"
cc(" d")
#> [1] " d"
cc()
#> character(0)
## Numerics are converted using as.character
cc(001,1,13e3)
#> [1] "1" "1" "13000"