Dear Martin
Thank you for your comments!
You are correct, I have a name space but did not export "initialize",
since I thought that a user will never need to use it.
I will also try your suggestion to define a constructor in my package,
this seems to me to be a great idea.
Merry Christmas
Chris
Hi Christian --
Does your package have a name space, but not export 'initialize'?
Calling 'new' will then go directly to the default constructors,
generating the error. A different solution would be to define a
constructor in your package
PreFilter <- function(...) {
new("PreFilter", ...)
}
Dear all
Below is the code for "scriptPreFilter.R" which gives the following result:
> source("scriptPreFilter.R")
> prefltr <- new("PreFilter", mad=c(0.5,0.01))
[1] "--initialize:PreFilter--"
[1] "--initialize:Filter--"
> str(prefltr)
Formal class 'PreFilter' [package ".GlobalE