[R] mapply() gives seg fault
Robin Hankin
rksh at soc.soton.ac.uk
Tue Oct 14 17:54:51 CEST 2003
Hello again
thanks for this. What I should have asked is, should one always report
repeatable seg faults (even if functions are called with
inappropriate arguments)?
[the emacs bug report FAQ says "yes" but I don't think there is a
similar policy for R].
best
rksh
>On Tue, 14 Oct 2003, Robin Hankin wrote:
>
>> Hello everybody.
>>
>> I've been experimenting with mapply(). Does anyone else have problems with:
>>
>> R> mapply(rep,times=1:4, MoreArgs=42)
>>
>> (I get a seg fault).
>>
>
>Yes, thanks for reporting this.
>
>You should get an error message instead: the correct syntax would be
>mapply(rep, times=1:4, MoreArgs=list(42))
>
>It looks as though just coercing to a list would probably be sufficient.
>
> -thomas
More information about the R-help
mailing list