[R] Mapping function dependencies

2003-08-14 Thread David Khabie-Zeitoune
Hi Does anyone know of any automatic way of mapping out the dependencies of a function -- i.e. automatically listing which other functions that function calls? I tried using all.names or all.vars, but I can't get it to work on a function: e.g. test = function(x, y) return(sin(x + y)*cos(x + y))

RE: [R] Mapping function dependencies

2003-08-14 Thread Martin Maechler
TL == Thomas Lumley [EMAIL PROTECTED] on Wed, 13 Aug 2003 07:16:43 -0700 (PDT) writes: TL On Wed, 13 Aug 2003, David Khabie-Zeitoune wrote: With regards to my question below, I've found a way to do it: all.names(body(test)) TL This also gives all the variable

RE: [R] Mapping function dependencies

2003-08-14 Thread David Khabie-Zeitoune
-Original Message- From: David Khabie-Zeitoune Sent: 13 August 2003 14:01 To: [EMAIL PROTECTED] Subject: [R] Mapping function dependencies Hi Does anyone know of any automatic way of mapping out the dependencies of a function -- i.e. automatically listing which other functions that function calls