[tech-spec] Re: R arguments

  • From: "Steve Wisdom" <swis@xxxxxxxxxxxx>
  • To: <tech-spec@xxxxxxxxxxxxx>
  • Date: Wed, 13 Oct 2004 12:59:34 -0400

BBands [BBands@xxxxxxxxxxxxxxxxxx] :

> Is there a way to pass arguments to an R script?
> Something like: source('script.R', arg1, arg2)

Dirk would know this better, but to pass *command line* arguments,


> commandArgs()
[1] "C:\\Program Files\\R\\rw1091\\bin\\Rgui.exe"

and there's quite a bit in the R-help archives about this

However it seem's you asking about passing 'extra' arguments to source() *in
the GUI*

Arguments to what? Where are they being plugged in, assuming you have them?

I fiddled with ideas like

mysource<- function(x,...) source(x,...)

with no immediate success

Other related posts: