WordArchive-class | R Documentation |
This is a class that represents a .docx file and allows
access to the individual elements within that archive. We can access
the different elements in a structured manner by knowing this is a
Word file rather than a generic Office Open XML document.
We do, however, inherit many of the facilities from this parent class OOXMLArchive
.
Most instances of this class are created via a call towordDoc
.
.Data
:Object of class "character"
~~
classes
:Object of class "character"
names of
the classes that this implements. (These are available from the S4
hierarchy but are here also for some experimental purposes.)
elements
:Object of class "character"
the names
of the elements in the .docx file when it was read, i.e. when
the WordArchive
object was constructured, or updated when we
add elements.
Class "OOXMLArchive"
, directly.
Class "ZipFileArchive"
, by class "OOXMLArchive", distance 2.
Class "character"
, by class "OOXMLArchive", distance 3.
Class "ZipArchive"
, by class "OOXMLArchive", distance 3.
Class "vector"
, by class "OOXMLArchive", distance 4.
Class "data.frameRowLabels"
, by class "OOXMLArchive", distance 4.
signature(x = "WordArchive", i = "character", j =
"missing")
: access an element in the .docx archive, parsing it
if is an XML document.
signature(archive = "WordArchive", node =
"character")
: add XML content to the primary XML document within the archive.
signature(archive = "WordArchive", node =
"XMLInternalNode")
: add an already created XML node to the primary XML document within the archive.
signature(doc = "WordArchive")
: ...
signature(doc = "WordArchive")
: ...
signature(doc = "WordArchive")
: ...
signature(doc = "WordArchive")
: ...
signature(doc = "WordArchive")
: ...
signature(x = "WordArchive")
: get an R list of the
content lists within the primary document.
signature(x = "WordArchive")
: get a list of the
tables within the primary document in the Word archive.
signature(file = "WordArchive")
: ...
signature(from = "character", to =
"WordArchive")
: coerce a file name to a WordArchive
, same as wordDoc
.
signature(from = "XMLInternalDocument", to =
"WordArchive")
: get the WordArchive
from a parsed XML
document within that archive. The docName
element of these
XML documents contains the archive name and the internal element name.
signature(from = "XMLInternalElementNode", to =
"WordArchive")
: obtain the WordArchive
object from a node in
a parsed XML document originating from within that archive.
signature(from = "RWordXMLDoc", to =
"WordArchive")
: obtain the WordArchive
from the parsed XML
document that is the primary XML document within the archive.
Duncan Temple Lang
showClass("WordArchive")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.