Consider the following:
v <- letters[1:4]
 "a" "b" "c" "d"
I would like the following output using
"a \\ \hline b \\ \hline c \\ \hline d \\ \hline"
or the version with quotation marks removed. The closest I've gotten to this is
paste0(v, collapse = " \\ \\hline ")
 "a \\ \\hline b \\ \\hline c \\ \\hline d"
and then I
CTRL + F
for Find and Replace in RStudio using
, which is simple enough, but I would like to see if there's a way to just create this string without that extra step.
This problem comes up when I want to create a
environment using a character vector in an