Re: [R] S4 object slot of type 'call' Roberto Brunelli wrote: > I'm using an S4 object with a slot of type 'call': I would like to be able to initialize  > it with something like NULL or NA (indicating that there is no information in the slot) > but the value should comply with the fact that it must be of type call. > > Is there any simple way to obtain this? This looks fine:  > setClass("testCall", representation = representation(call = "call")) [1] "testCall"  > test <- new("testCall")  >  > test An object of class "testCall" Slot "call": ``() Although, I found a bug while playing around: cl <- call("round", 10.5) cl[] <- NULL cl ## CRASH using R-2.5.0 on Windows XP Uwe Ligges > Thanks for any hint, >  > 	Roberto > ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.