Displaying 1 result from an estimated 1 matches for "derived_j".
Did you mean:
derived_m
2012 Aug 06
1
OO code organization
...te folder:
In Folder base/base.R: defines class "base" and does
setGeneric("showSelf",
function(this) standardGeneric("showSelf")
)
setMethod("showSelf",
signature(this="base"),
definition=
function(this){ ... }
)
For j=1,...,n:
in derived_j/derived_j.R: defines class "derived_j" and does
setMethod("showSelf",
signature(this="derived_j"),
definition=
function(this){ ... }
)
Finally in tests/tests.R we do
source("../base/base.R")
source("../derived_1/derived_1.R")
source("...