The general converter for an object with a formal class
or an object to be described via its S3 class, data and attributes.
Not usually called directly, but from objectAsJSON
or method in an interface package.
asJSONS4(object, prototype, exclude = character(), level = 0)
The object to convert.
The prototype object (supplied from the evaluator).
Slots to exclude from the dictionary.
The level of expansion of objects within the original object.
Chambers, John M. (2016) Extending R, Chapman & Hall/CRC. ( Chapter 13, discussing this package, is included in the package: ../doc/Chapter_XR.pdf.)