convert: Convert an R object to a format depending on the target...

convertR Documentation

Convert an R object to a format depending on the target format

Description

This generic function and its methods provide a flexible, extensible mechanism for converting an R object into a representation that can be inserted into the output of a dynamic document.

Usage

convert(from, opts = NULL, target, context = NULL)

Arguments

from

the R object to be converted to a suitable representation.

opts

a list of options or a DynamicOptions object providing "global" information controlling the processing of the dynamic documents.

target

an instance of one of the sub-classes of DynamicTarget-class that is used to determine the target format of the resulting document and so the format expected of serializing from.

context

an object providing the context in which the conversion is being performed. In an dynamic document, this is the XSL context and provides access to the style sheet, the input document, the current node being generated, XSL parameters, and so on. This can then be queried to provide "global" information.

Author(s)

Duncan Temple Lang

See Also

dynDoc


duncantl/XDynDocs documentation built on Jan. 4, 2024, 5:20 p.m.