Learn R Programming

textreadr (version 1.2.0)

read_odt: Read in .odt Content

Description

Read in the content from a .odt file.

Usage

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

Run this code
# NOT RUN {
url <- "https://github.com/trinker/textreadr/raw/master/inst/docs/Hello_World.odt"
file <- download(url)
(txt <- read_odt(file))
# }

Run the code above in your browser using DataLab