[tech-spec] Re: R arguments

  • From: BBands <BBands@xxxxxxxxxxxxxxxxxx>
  • To: "'tech-spec@xxxxxxxxxxxxx'" <tech-spec@xxxxxxxxxxxxx>
  • Date: Wed, 13 Oct 2004 10:54:40 -0700

> 
> On Wed, Oct 13, 2004 at 09:19:07AM -0700, BBands wrote:
> > Is there a way to pass arguments to an R script? 
> > 
> > Something like: source('script.R', arg1, arg2)
> 
> Steve and Daniel answered already cmdline args and global 
> vars. Another
> variant may be to rewrite what you have in script.R, define a 
> function foo
> and then do
> 
>    source('script.R');  foo(arg1, arg2)
> 
> Does that help?
> 
> Dirk
> 

Yes, slowly proceding in that direction...

     --jab

Other related posts: