word_doc_to_txt: Convert a Word document to a plaintext document

Description Usage Arguments Value Note Examples

Description

Convert a Word document to a plaintext document

Usage

1
word_doc_to_txt(in_path, out_path)

Arguments

in_path, out_path

source and destination files. These can be abbreviated path names (e.g. ~/in/word.docx, ~/out/word.txt) but they must be paths to file names. Extensions are not automatically added by this function

Value

the path.expanded out_path (invisibly)

Note

Requires a working pandoc installation; this comes with RStudio, so if the caller is using RStudio, pandoc should be available.

Examples

1
2
3
4
## Not run: 
word_doc_to_txt("~/in/word.docx", "~/out/word.txt")

## End(Not run)

hrbrmstr/misinfo documentation built on May 7, 2019, 9:36 a.m.