Re: [Rd] (PR#10437) segfault on functions with 'source' attribute

From: <>
Date: Tue, 20 Nov 2007 11:30:27 +0100 (CET)

For the record: The reason I used attr(myfun, "source") = FALSE, is that I misread the example 'Tidying R Code' in 'Writing R Extensions', which calls for attr(myfun, "source") = NULL.

Somehow setting 'source' to FALSE seems more natural to me than setting it to NULL.

> I am not sure why you would want to do that, but the C code does assume
> source attributes were put there by R, and changing tests from !isNull to
> isString in a few places will fix that.

Karl Ove Hufthammer

______________________________________________ mailing list
Received on Wed 21 Nov 2007 - 15:12:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 21 Nov 2007 - 18:30:21 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.