As far as I know, what most languages call a string, R calls a character vector. For example, "Alice" is not a string, it's a character vector of length 1. Similarly, c("Alice", "Bob") is a character vector of length 2. I cannot recall my IDE or any of my work with R's type system telling me that R has any internal concept of "strings".
Despite this, R's documentation frequently uses the word "string":
?pasteand?ncharfrequently talk of "character strings".- Many "See Also" sections mention strings without any qualifier, e.g.
?paste,?chartr, and?agrep. ?strsplitmentions "substrings".?agrep,?toString, and?adisttalk about strings both in their titles and "Description" sections.strsplit,strwidth, andtoStringhave string or a shorthand for it in their names.
So does R actually have a concept of strings, or does it always mean exactly the same thing as "character vector"?