textreadr (version 1.2.0)

read_rtf: Read a Rich Text Format Content

Description

A wrapper for striprtf::read_rtf() to read RTFs

Usage

read_rtf(file, skip = 0, remove.empty = TRUE, trim = TRUE, ...)

Arguments

file

A path to a RTF file.

skip

The number of lines to skip.

remove.empty

logical. If TRUE empty elements in the vector are removed.

trim

logical. If TRUE the leading/training white space is removed.

...

Other arguments passed to striprtf::read_rtf().

Value

Returns a character vector.

See Also

striprtf::read_rtf()

Examples

Run this code
# NOT RUN {
rtf_dat <- read_rtf(
    'https://raw.githubusercontent.com/trinker/textreadr/master/inst/docs/trans7.rtf'
)
# }

Run the code above in your browser using DataLab