Skip to content
/ unrtf Public

Wrapper for 'unrtf' utility to extract text from RTF documents

Notifications You must be signed in to change notification settings

ropensci/unrtf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unrtf

Build Status AppVeyor Build Status Coverage Status CRAN_Status_Badge CRAN RStudio mirror downloads

Extract Text from Rich Text Format (rtf) Documents

Wraps the unrtf utility to extract text from rtf files.

Installation

devtools::install_github("ropensci/unrtf")

Hello World

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)