Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upusing obj$set to create NULL object #158
Comments
|
I agree that would make more sense for |
I want to add a new public element with a value
NULLin an R6Class usingobj$set.Intuitively I would do
But the way
obj$setis written if I want to add a new element with NULL value it is removed from the group listR6/R/generator_funs.R
Line 70 in bb56213
Created on 2018-09-24 by the reprex package (v0.2.1)
It would need to be
If I put in
obj$set('public','foo',list(NULL))then I get back a list object which is not what I intended.Created on 2018-09-24 by the reprex package (v0.2.1)
Is there a way to do this now that I can't see?