[Rd] deriv (PR#953)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
30 May 2001 01:09:21 +0200


Thomas Lumley <tlumley@u.washington.edu> writes:

> On 30 May 2001, Peter Dalgaard BSA wrote:
> >
> > <grin>
> > You had me going there too.
> >
> > Try stripping the "source" attribute from the template functions....
> > (or from the output of deriv() for that matter). I'll give it a think
> > how to do that inside the deriv function so as to preserve user
> > sanity.
> 
> Ouch. Perhaps SET_BODY should remove the "source" attribute?

Hmm maybe, but it seems to me that elementary functions like that
should not do anything complicated, and body()<- and args() will
already lose *all* attributes. (The former might actually be
considered a buglet, but given the amount of use body()<- gets, I
think we can live with it).

I think I have another solution for deriv.c. That is, I thought I had,
but it didn't quite work...

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._