From my understanding of the documentation, if a class is defined with lock = TRUE (which is the default), then adding new members should not be allowed. But I'm not seeing this restriction happening in practice.
The lock argument actually means that the objects (not the generator) can't have new fields added to them. But it would be useful to have a lockClass argument as well.
From my understanding of the documentation, if a class is defined with
lock = TRUE
(which is the default), then adding new members should not be allowed. But I'm not seeing this restriction happening in practice.Maybe I'm misinterpreting what
lock
is doing.R 3.1.3, R6 2.0.1