getEntryType | R Documentation |
These functions allows one to determine the nature or purpose of an element in an Office Open archive. It looks up the mapping from file name and extension to type and
getEntryType(filename, archive, types = computeParts(archive), partialMatch = FALSE)
getEntryTypeByExtension(filename, archive, types = contentTypes(archive), partialMatch = FALSE)
filename |
the name of the entry in the archive, i.e. the file name of that entry.
This can have the preceding / or not. If partialMatch is |
archive |
the OOXMLArchive object representing the archive. |
types |
the collection of mappings from file names and extensions to type names, e.g.
"application/vnd.openxmlformats-officedocument.theme+xml" for a theme document.For
|
partialMatch |
a logical value indicating whether to treat the name of the archive element (filename) as a partial name of an archive element. |
A character string giving the type for the input file or extension.
# This shows how we can match by file name using
# exact matching or partial matching.
# If we don't use partial matching and do not have an exact match,
# we match by extension.
oo = createOODoc(system.file("SampleDocs", "pics.docx", package = "ROOXML"))
getEntryType("theme1.xml", oo)
getEntryType("theme1.xml", oo, partial = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.