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

2007-11-21 Thread Prof Brian Ripley
On Tue, 20 Nov 2007, [EMAIL PROTECTED] wrote: > 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 m

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

2007-11-21 Thread karl
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. [EMAIL PROTECTED]: > I a

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

2007-11-19 Thread ripley
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. If there is a character vector "source" attribute it should be used: that is the point of such attributes.