View source: R/inpdfr_PRO_processTxt.R
preProcTxt | R Documentation |
Extract text from txt files and pre-process content.
preProcTxt(filetxt, encodingIn = "UTF-8", encodingOut = "UTF-8")
filetxt |
A character containing the name of a txt file. |
encodingIn |
Encoding of the text file (default = "UTF-8"). |
encodingOut |
Encoding of the text extracted (default = "UTF-8"). |
A character vector with the content of the pre-process txt file (one element per line).
## Not run:
data("loremIpsum")
subDir <- "RESULTS"
dir.create(file.path(getwd(), subDir), showWarnings = FALSE)
write(x = loremIpsum, file = "RESULTS/loremIpsum.txt")
preProcTxt(filetxt = paste0(getwd(), "/RESULTS/loremIpsum.txt"))
file.remove(list.files(full.names = TRUE,
path = paste0(getwd(), "/RESULTS"), pattern = "loremIpsum"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.