| readDOC {tm} | R Documentation |
Returns a function which reads in a Microsoft Word document extracting its text.
readDOC(AntiwordOptions = "", ...)
AntiwordOptions |
options passed over to antiword. |
... |
arguments for the generator function. |
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 accessable on your system.
A function with the signature elem, language, id:
elem |
A list with the two named elements content
and uri. The first element must hold the document to
be read in, the second element must hold a call to extract this
document. The call is evaluated upon a request for load on demand. |
language |
A character vector giving the text's language. |
id |
A character vector representing a unique identification
string for the returned text document. |
The function returns a PlainTextDocument representing the text
in content.
Ingo Feinerer
Use getReaders to list available reader functions.