I am trying to write a text file. I like using the cat() function because it makes writing line breaks really easy. However, I noticed I can't seem to save the character string as a variable in the global environment. I just get "lines" equal to NULL. How can it be saved as the character string (with line breaks) that it returns without being saved to a variable?
lines <- cat(paste("",
"",
"",
"",
"this is line 4",sep="\n"))