types
) parameter.
The function also generates a coercion method from an
XMLAbstractNode
to an instance of this new class.
This function can either return the code that defines the class or it can define the new class in the R session.
makeClassTemplate(xnode, types = character(), default = "ANY",
className = xmlName(xnode), where = globalenv())
NULL
inhibits the code being evaluated. In this
case, the code is returned as strings.where
is not NULL
, the class and coercion code
is actually evaluated and the class and method will be defined
in the R session as a side effect.xmlToS4