Just over a year ago, I searched online for here-document (or similar) capability in R. I didn't find any indication of it. Now, it's among the first things that pop up in a google search -- for example, on Wikipedia. I'm not sure whether this is because it is a relatively new capability, or a capability that was present before but not well-known.
When did this capability became available?
If it was available for much more than a year, was it simply relatively unknown?
(If so, then I was just not searching properly back then).
Code example
In R, one can do
query <-
"
SELECT FirstName,
LastName,
Address
INTO tAllBobs
FROM tContacts
WHERE FirstName = 'Bob'
ORDER BY LastName
"
In VBA, one has to do:
query = _
"SELECT FirstName, " & _
" LastName, " & _
" Address " & _
"INTO tAllBobs " & _
"FROM tContacts " & _
"WHERE FirstName = 'Bob' " & _
"ORDER BY LastName "
The string delimiters and line continuation syntax makes the code difficult to modify and reformat. Even adding the single quotes around 'Bob' (as I did above) disrupts the formatting. Larger revisions would wreak havoc and require intense re-editing.
This is why I was interested in when here-document capability was supported in R.