[R] Using command line --file or -f

2010-08-11 Thread Gene Leynes
*What I want to do: *Create a windows shortcut that will start the R gui **and** simultaneously source a file *What I have already tried: *This almost works, but it's not the interactive R GUI: R --no-save --sdi -file=C:\SomePath\example.R These open the R GUI, but doesn't recognize -f --f

Re: [R] Using command line --file or -f

2010-08-11 Thread Erik Iverson
Gene Leynes wrote: *What I want to do: *Create a windows shortcut that will start the R gui **and** simultaneously source a file *What I have already tried: *This almost works, but it's not the interactive R GUI: R --no-save --sdi -file=C:\SomePath\example.R These open the R GUI, but

Re: [R] Using command line --file or -f

2010-08-11 Thread David Winsemius
On Aug 11, 2010, at 4:13 PM, Gene Leynes wrote: *What I want to do: *Create a windows shortcut that will start the R gui **and** simultaneously source a file Can't you set the file associations to start up RGUI when you launch an .R file? *What I have already tried: *This almost

Re: [R] Using command line --file or -f

2010-08-11 Thread Duncan Murdoch
On 11/08/2010 4:13 PM, Gene Leynes wrote: *What I want to do: *Create a windows shortcut that will start the R gui **and** simultaneously source a file *What I have already tried: *This almost works, but it's not the interactive R GUI: R --no-save --sdi -file=C:\SomePath\example.R These

Re: [R] Using command line --file or -f

2010-08-11 Thread Gene Leynes
I'll respond to everyone, but Duncan's response worked, so I'll put that first. Thank you *everyone* for responding, I really appreciate it Duncan: Great idea, it's simple and works. Using the --args causes the final flags to be ignored by R, but you can still retreive them using commandArgs()