How do I use the new line character in R?
myStringVariable <- \"Very Nice ! I like\"; myStringVariabel <- paste(myStringVariable, \"\\n\", sep=\"\");
You can also use writeLines.
writeLines
> writeLines("hello\nworld") hello world
And also:
> writeLines(c("hello","world")) hello world