On Mon, 17 Apr 2006, Paul Gilbert wrote:
Prof Brian Ripley wrote:
On Mon, 17 Apr 2006, Paul Gilbert wrote:
Ok, but I'm surprised. I thought partial matching only happened for
named arguments. I guess I've been lucky.
Here C is named, so what did you mean?
Now I guess I've really been co
Prof Brian Ripley wrote:
> On Mon, 17 Apr 2006, Paul Gilbert wrote:
>
>> Ok, but I'm surprised. I thought partial matching only happened for
>> named arguments. I guess I've been lucky.
>
> Here C is named, so what did you mean?
Now I guess I've really been confused. I thought named arguments
On Mon, 17 Apr 2006, Paul Gilbert wrote:
Ok, but I'm surprised. I thought partial matching only happened for
named arguments. I guess I've been lucky.
Here C is named, so what did you mean?
Partial matching happens for all arguments called by name, except for
those following ... in the forma
Ok, but I'm surprised. I thought partial matching only happened for
named arguments. I guess I've been lucky.
Paul
Prof Brian Ripley wrote:
> It's an error in your usage The args of new() are
>
>> args(new)
> function (Class, ...)
>
> and what does 'C' match? You need to name your arguments
It's an error in your usage The args of new() are
args(new)
function (Class, ...)
and what does 'C' match? You need to name your arguments here.
On Mon, 17 Apr 2006, Paul Gilbert wrote:
"C" appears to be an illegal name for a slot in an S4 class (example
below).
It is rather an example
"C" appears to be an illegal name for a slot in an S4 class (example
below). If this is a known limitation, and not a bug, it would be nice
if it were caught by setClass.
Paul Gilbert
> setClass("testobj", representation ( C = "numeric"))
[1] "testobj"
> new("testobj", C= 2)
Error in methodsP