Generate the Explicit Dictionary form for an R Object

Share:

Description

The XR interface strategy uses an explicit named list (i.e., dictionary) to describe an R object from a particular class. This function creates the suitable form for such a dictionary, based on the formal class or the contents of an object. Used by some interface packages (e.g., XRJulia) but likely only of information value otherwise, to tell you how to code an object in the server language.

Usage

1
objectDictionary(object, exclude = character())

Arguments

object

the object to use to infer the representation

exclude

slots or the like that should not be in the dictionary form.

Value

a named list with the required entries, e.g., ".RClass".

References

Chambers, John M. (2016) Extending R, Chapman & Hall/CRC. ( Chapter 12, discussing this package, is included in the package: ../doc/Chapter_XR.pdf.)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.