Closed brodieG closed 4 years ago
This is because the list print method does not print the parent list element when the child is a classed list, presumably because it does not want to interfere with a potential print method of the child, but I think that's probably bad.
Indeed, when recursively printing, the global tag buffer gets reset by the print.default
method.
A possible solution would be to make the tag buffer reset the responsibility of printValueRec, where it would record on first call that print recursion is active and on exit reset the tag buffer.
There are two obvious issues with this:
See #146 for a possible future work-around.
Also Lionel's issue on bugzilla, and discussion on r-devel.
Should preserve one more $qr