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 -- Those are my principles, and if you don't like them... well, I have others. -- Groucho Marx