read_odt: Read in .odt Content

Description Usage Arguments Value Examples

Description

Read in the content from a .odt file.

Usage

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

Arguments

file

The path to the .odt 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.

...

ignored.

Value

Returns a character vector.

Examples

1
2
3
4
5
6
## Not run: 
url <- "https://github.com/trinker/textreadr/raw/master/inst/docs/Hello_World.odt"
file <- download(url)
(txt <- read_odt(file))

## End(Not run)

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