Passing parameters to R command line (was "RE: [R] embedding R?")

Martin Maechler maechler at stat.math.ethz.ch
Fri Feb 23 20:31:03 CET 2001


>>>>> "M" == M Edward Borasky <znmeb at aracnet.com> writes:
(Feb.11)

    M> More elegant would be the capability of passing parameters to the
    M> "R" command line just like you pass parameters to any other UNIX or
    M> Windows command line. 

This has been working (in some way) for many months now:

 % R --vanilla --quiet   bli bla blo
 ARGUMENT 'bli' __ignored__
 ARGUMENT 'bla' __ignored__
 ARGUMENT 'blo' __ignored__

 > commandArgs()
 [1] "/u/maechler/R/r-release/Linux-inst/bin/R.bin"
 [2] "--vanilla"                                   
 [3] "--quiet"                                     
 [4] "bli"                                         
 [5] "bla"                                         
 [6] "blo"                                         
 > 

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO D10	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list