On Tue, Nov 03, 2003 at 17:06:37 +0100, you wrote:
>> REAL(x)[0] = 10;
>> REAL(y)[0] = 20;
>> SETCADR(R_fcall, x);
>> SETCADR(R_fcall, y);
>> ...
>> .Call("f", c, new.env()) returns
>> `.Primitive("c")(20)'
> Hmmm. This is definitely not right:
>
> SETCADR(R_fcall, x);
> SETCADR(R_fcall, y);
>
> sets the same location first to x, and then to y. I suspect you need
>
> SETCADDR(R_fcall, y);
>
> but no guarantees...
This returns message `bad value'.
Ok! the question is: How can I create a call with, say, 10
arguments? I mean C code, of course :)
Thanks.
--
WBR,
Timur.
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help