exportClassDefs | R Documentation |
This function and the related helper functions
is used to generate R code that can be used
in another R session or package to define
classes and coercion methods that currently exist in this session.
The idea is that we use this to create explicit R code that will
recreate the classes and methods we define via
defineClasses
corresponding to the types in our XML schema.
This function also makes an effort to get the correct order in which the classes should be defined.
expandS4
takes care of serializing S4 objects
which does not currently happen with deparse
.
exportClassDef
generates the code for the class.
exportClassDefs(x, file = NULL, where = globalenv(), ...)
x |
the collection of class names. |
file |
the name of a file or a connection to which the generated code
should be written. If this is |
where |
the environment in which to look for the class definitions. |
... |
additional parameters passed to sub-functions |
Duncan Temple Lang
defineClasses
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.