Re: [Rd] Problem using callNextMethod() in S4

2007-03-05 Thread cstrato
Dear Martin Thank you for this extensive explanation! I hope that I have understood it, but I will realize it as I proceed with my package. Now, my example works as I have expected it to work, great! One problem that I face is lack of extensive explanation of S4 classes, especially with respect t

Re: [Rd] Problem using callNextMethod() in S4

2007-03-04 Thread Martin Morgan
In this method... setMethod("initialize", "baseClass", function(.Object, ...) { print("---initialize:baseClass---") #.Object <- callNextMethod(); strg <- [EMAIL PROTECTED]; print(paste("base:strg = ", strg)) if (strg == "") { [EMAIL PROTECTED] <- as.character(getwd());

Re: [Rd] Problem using callNextMethod() in S4

2007-03-04 Thread cstrato
Dear Seth Thank you for your comments. Please see my comments and at the end my corrected code and output. Sorrowly, the problem remains the same. Seth Falcon wrote: > cstrato <[EMAIL PROTECTED]> writes: > > >> Dear all, >> >> Maybe, I am doing something wrong, but using R-2.5.0 on my Intel-M

Re: [Rd] Problem using callNextMethod() in S4

2007-03-04 Thread Seth Falcon
cstrato <[EMAIL PROTECTED]> writes: > Dear all, > > Maybe, I am doing something wrong, but using R-2.5.0 on my Intel-Mac, I > have problems > using function callNextMethod() in method initialize. > > I am loading the following code as file "testS4.R": I don't think this is the code in the same s

[Rd] Problem using callNextMethod() in S4

2007-03-04 Thread cstrato
Dear all, Maybe, I am doing something wrong, but using R-2.5.0 on my Intel-Mac, I have problems using function callNextMethod() in method initialize. I am loading the following code as file "testS4.R": setClass("baseClass", representation(myname = "character", mydir = "cha