> > >> On Linux and Unix machines, such as OS X, a the following hashbang line > could be added to the top of the script: > > #!/usr/bin/env Rscript > > Then the script can be run from a terminal using: > > cd path/to/script/files >
I forgot to mention that in order to use the hashbang method of invocation, the script must also be flagged as a executable file: chmod 755 someScript.R > ./someScript.R > > Or placed somewhere on the PATH and invoked from the command line by simply > typing: > > someScript.R > > -Charlie [[alternative HTML version deleted]] ______________________________________________ R-help@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.