[R] Command line arguments with source() - Windows OS

From: Brigid Mooney <bkmooney_at_gmail.com>
Date: Mon, 17 Nov 2008 08:57:15 -0500

Hi Everyone,

I am pretty new to R and so far have mostly been using R interactively through the Windows console.

I'm starting to write some scripts, and have been executing them using the source() command, i.e. source(myRfile.R).

My questions is how can I pass command line arguments to R. My file "myRfile.R" has some global variables which I would like to be able to set at run-time, without having to go in and edit the text of the file each time I want to run it.

I can't seem to find much information on this topic for Windows and using it with the console - so any help would be greatly appreciated.

Thanks so much!

        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 17 Nov 2008 - 14:03:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 17 Nov 2008 - 14:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive