readDOC {tm}R Documentation

Read In a MS Word Document

Description

Return a function which reads in a Microsoft Word document extracting its text.

Usage

readDOC(AntiwordOptions = "")

Arguments

AntiwordOptions

Options passed over to antiword.

Details

Formally this function is a function generator, i.e., it returns a function (which reads in a text document) with a well-defined signature, but can access passed over arguments (e.g., options to antiword) via lexical scoping.

Note that this MS Word reader needs the tool antiword installed and accessible on your system. This can convert documents from Microsoft Word version 2, 6, 7, 97, 2000, 2002 and 2003 to plain text, and is available from http://www.winfield.demon.nl/.

Value

A function with the signature elem, language, id:

elem

a list with the named component uri which must hold a valid file name.

language

a string giving the text's language.

id

a unique identification string for the returned text document.

The function returns a PlainTextDocument representing the text and meta data extracted from elem$uri.

Author(s)

Ingo Feinerer

See Also

getReaders to list available reader functions.


[Package tm version 0.5-10 Index]