r-lib / R6

Encapsulated object-oriented programming for R
https://R6.r-lib.org
Other
407 stars 56 forks source link

overriding [[ for R6 class breaks print #70

Closed piccolbo closed 9 years ago

piccolbo commented 9 years ago

because this R6 class represent a collection with its own contents, but the print method loops over obj_names and then passes each of them to [[. I know I can override print and it's already planned, but if I were fine with the default print, is there a way to avoid this? And is this an isolated instance or am I going to break other things?

wch commented 9 years ago

I just pushed a fix. Can you test it out and report back? Thanks!

piccolbo commented 9 years ago

Problem solved. Thanks