Displaying 1 result from an estimated 1 matches for "mongodbuser".
2012 Jun 25
1
Very simple question R5 setRefClass and Initialize
...te at the class definition.
I would like it to execute only when an instance is created.
How can I do that? I found no way to test if the code execution is when
the class definition happens or when a $new instance is created.
Thanks for your help.
For example my class definition looks like this :
mongoDbUser = setRefClass("mongoDbUser",
fields = list(
auth = "logical",
host = "character",
username = "character",
password = "character",
db = "character",
connector = "mongo"
),
methods...