Closed jakob-r closed 4 years ago
What are your thoughts on the possibility to not inherit only from an R6ClassGenerator but also form an R6 instance?
R6ClassGenerator
library(R6) Thing = R6Class( classname = "Thing", public = list( name = NULL, initialize = function(name) self$name = name ) ) thing1 = Thing$new("thing1") Thing1_1 = R6Class( classname = "Thing1_1", inherit = thing1, public = list( colour = NULL, initialize = function(colour) self$colour = colour ) )
I don't think that would be feasible without major changes. What is the use case you have in mind?
What are your thoughts on the possibility to not inherit only from an
R6ClassGenerator
but also form an R6 instance?