Skip to content
Back to formatted view

Raw Message

Message-ID: <3f87cc6d0509070747503f3f1b@mail.gmail.com>
Date: 2005-09-07T14:47:43Z
From: Omar Lakkis
Subject: variables from command line

How can I pass parameters to an R script from the command line. And
how can I read them from within the script?

This is how I want to invoke the script:
R CMD BATCH r.in r.out  <input values>

The script with read in the input values, process them and spit the
output to r.out.