coerce-S4-list-method: Coerce an S4 object to a list

Coerce S4 to listR Documentation

Coerce an S4 object to a list

Description

This method is a convenience function used to coerce an S4 object to a list.

Details

  • This function will never be called directly, because S4 is a virtual class; however, it is useful to indicate that this function is intended to be used generally with S4 objects.

  • setIs(hiveEntity, S4) cannot be used to ensure that this method is applied to Entity objects, as a conflict results for any Entity subclass with a .Data part; as a workaround, the definitions for classes that need to use this method are followed by a call to setIs with the parameter class2="S4" to ensure that they inherit the virtual class S4.

Author(s)

Adam C. Gower agower@bu.edu


agower/GeneHive documentation built on April 14, 2022, 5:08 a.m.