I'm trying to split a document by paragraph in R
test.text <- c("First paragraph. Second sentence of 1st paragraph.
Second paragraph.")
# When we run the below, we see separation of \n\n between the 2nd and 3rd sentences
test.text
# This outputs the desired 2 blank lines in the console
writeLines("\n\n")
a <- strsplit(test.text, "\\n\\n")
It's not splitting properly.