Extract Text from Rich Text Format (rtf) Documents
Wraps the unrtf utility to extract text from rtf files.
devtools::install_github("ropensci/unrtf")
The function has only a single function unrtf()
. It takes either a local
file path or a URL to a word document:
library(unrtf)
text <- unrtf("https://jeroen.github.io/files/sample.rtf", format = "text")
html <- unrtf("https://jeroen.github.io/files/sample.rtf", format = "html")
cat(text)