createOODoc | R Documentation |
This is a general function that can be used by other packages and users to create an object that represents an Office Open document such as a Word or Excel document. The function allows the caller to specify the class name of the target object and the general OO archive values are filled in.
createOODoc(f, create = FALSE, class = "OOXMLArchive", emptyDoc = NA, extension = character())
f |
the name of the Office Open file |
create |
a logical value indicating whether we should create the file if it does not exist (by copying a template) |
class |
the name of the class of which we want an instance. This allows the caller to use this function to create instances of, e.g., the WordArchive or ExcelArchive classes. This should be the name of a class that extends OOXMLArchive. |
emptyDoc |
the name of a template document of this type if the file given via f does not exist and
create is |
extension |
a string giving the extension to check for if only the base name of the document is given |
An object of class given by class. This has the name of the file and the vector of names of the components within the archive.
Duncan Temple Lang duncan@wald.ucdavis.edu
wordDoc
and excelDoc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.