read_docx {docxtractr} | R Documentation |
Read in a Word document for table extraction
Description
Local file path or URL pointing to a .docx
file. Can also take
.doc
file as input if LibreOffice
is installed
(see https://www.libreoffice.org/ for more info and to download).
Usage
read_docx(path, track_changes = NULL)
Arguments
path |
path to the Word document |
track_changes |
if not |
Examples
doc <- read_docx(system.file("examples/data.docx", package="docxtractr"))
class(doc)
doc <- read_docx(
system.file("examples/trackchanges.docx", package="docxtractr"),
track_changes = "accept"
)
## Not run:
# from a URL
budget <- read_docx(
"http://rud.is/dl/1.DOCX")
## End(Not run)