This function accepts a .txt file with Project Gutenberg format and removes inner-paragraph line breaks.
1 2 |
filename |
File name as character string, i.e. "Crusoe", or (if scan.file = FALSE) a character vector of a text where each string is a line of text. |
write.out |
Logical. If TRUE (default), writes to file filename/filename-linesToParas.txt. |
return.text |
Logical. If TRUE (default = FALSE), returns the transformed text as a vector. |
scan.file |
Logical. If TRUE (default), scans in filename from filename/filename.txt, or (if local = FALSE) Google Drive filename.txt. |
local |
If FALSE (default), downloads from Google Drive and saves to folder filename/. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.