Re: [R] R 'function' as "subroutine"

2007-10-03 Thread Gabor Grothendieck
On 10/3/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 10/3/2007 7:56 AM, (Ted Harding) wrote: > > Hi Folks, > > > > The question I'm asking, regarding the use of function > > definitions in the context described below, is whether > > there are subtle traps or obscure limitations I should > > w

Re: [R] R 'function' as "subroutine"

2007-10-03 Thread Duncan Murdoch
On 10/3/2007 7:56 AM, (Ted Harding) wrote: > Hi Folks, > > The question I'm asking, regarding the use of function > definitions in the context described below, is whether > there are subtle traps or obscure limitations I should > watch out for. It is probably a rather naive question... > > Quite

Re: [R] R 'function' as "subroutine"

2007-10-03 Thread Gabor Grothendieck
On 10/3/07, Ted Harding <[EMAIL PROTECTED]> wrote: > Thanks for the suggestions, Gabor! > > On 03-Oct-07 12:52:51, Gabor Grothendieck wrote: > > 1. you could place the commands in a file and source the file each > > time you want to run it or it might be good enough to place it on the > > clipboar

Re: [R] R 'function' as "subroutine"

2007-10-03 Thread Ted Harding
Thanks for the suggestions, Gabor! On 03-Oct-07 12:52:51, Gabor Grothendieck wrote: > 1. you could place the commands in a file and source the file each > time you want to run it or it might be good enough to place it on the > clipboard and then just do source("clipboard") Using the file solutio

Re: [R] R 'function' as "subroutine"

2007-10-03 Thread Gabor Grothendieck
1. you could place the commands in a file and source the file each time you want to run it or it might be good enough to place it on the clipboard and then just do source("clipboard") 2. Thomas Lumley's defmacro in R News 1/3 could be used Neither of these two require that you do anything specia

[R] R 'function' as "subroutine"

2007-10-03 Thread Ted Harding
Hi Folks, The question I'm asking, regarding the use of function definitions in the context described below, is whether there are subtle traps or obscure limitations I should watch out for. It is probably a rather naive question... Quite often, one has occasion to execute interactively a lot of R