Closed sebffischer closed 2 years ago
Allow
a = lrn("regr.rpart") get_private(a, ".train") = function(x) print("hallo world")
Note that you should be aware that you cannot access self, private or super in functions you have assigned this way.
self
private
super
So better don't use this for functions at all (and document this)
Allow