You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible to use the class xml_document or xml_node in formal definitions of S4 classes.
It would be helpful for packages using S4 if they could properly define slots as being of a type provided by this package.
Error in makePrototypeFromClassDef(properties, ClassDef, immediate, where) :
in making the prototype for class “Testclass” elements of the prototype failed to match the corresponding slot class: xml (class "xml_document" )
In addition: Warning message:
undefined slot classes in definition of "Testclass": xml(class "xml_document")
Issue Description and Expected Result
It is not possible to use the class
xml_document
orxml_node
in formal definitions of S4 classes.It would be helpful for packages using S4 if they could properly define slots as being of a type provided by this package.
This should be possible with
setOldClass
.(Let me know if you'd welcome a PR on this.)
Reproducible Example
Session Info
The text was updated successfully, but these errors were encountered: