read_rtf: Read a Rich Text Format Content

Description Usage Arguments Value See Also Examples

View source: R/read_rtf.R

Description

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

Usage

1
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

1
2
3
4
5
6
## Not run: 
rtf_dat <- read_rtf(
    'https://raw.githubusercontent.com/trinker/textreadr/master/inst/docs/trans7.rtf'
)

## End(Not run)

textreadr documentation built on Oct. 9, 2021, 5:06 p.m.