Skip to content
Prev 36223 / 63424 Next

Strange behavior of assign in a S4 method.

Dear Wolfgang,

Thanks for the showMethod and the link.
I just change the argument list of foo2 to perfectly match with the 
definition.
Yes I kown. When I learnt object programming, one of the basic was that 
some methods was design to change internals value of the fields. It is 
what I try to do here.
This will not apply, because I my case, the function foo2 is avalable 
only for object of class FooClass and the only possible use will be :

toto <- new("FooClass")
....
foo2(toto)

Best wishes
Christophe