Re: [Rd] Problem with initialize of S4 classes

2007-12-24 Thread cstrato
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

Re: [Rd] Problem with initialize of S4 classes

2007-12-23 Thread Martin Morgan
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", ...) }