The constructor should probably be doing something like this but you get
the idea:
ResubstituteParams <- function(nFeatures_call)
{
if (missing(nFeatures_call))
new("ResubstituteParams", nFeatures=seq(10, 100, 10))
else
new("ResubstituteParams",
nFeatures_call=substi
Hi Dario,
It would be good if you could provide a little bit more context about
ResubstituteParams objects and how they are typically used in practice.
As you found out, delayedAssign() won't work. How about trying something
like this?
setClassUnion("numeric_OR_NULL", c("numeric", "NULL")