objectDictionary: Generate the Explicit Dictionary form for an R Object

Description Usage Arguments Value References

View source: R/Interface.R

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 13, discussing this package, is included in the package: ../doc/Chapter_XR.pdf.)


XR documentation built on May 2, 2019, 6:01 a.m.

Related to objectDictionary in XR...