Do you know to pass named command line arguments into an R script?
I have used littler and argv to pass a vector of arguments, but this
requires you to maintain the order of the arguments.
I'm wondering if there is a way to do this when you do not know the
order of the arguments being passed in.
Hi,
On Thu, Jul 1, 2010 at 2:49 PM, Bierbryer, Andrew
abierbr...@klsdiversified.com wrote:
Do you know to pass named command line arguments into an R script?
I have used littler and argv to pass a vector of arguments, but this
requires you to maintain the order of the arguments.
I'm
On Thu, Jul 01, 2010 at 02:49:20PM -0400, Bierbryer, Andrew wrote:
Do you know to pass named command line arguments into an R script?
I have used littler and argv to pass a vector of arguments, but this
requires you to maintain the order of the arguments.
Install the getopt package from CRAN
On Tue, 10 Nov 2009, Duncan Murdoch wrote:
--interactive tells R that there is a human producing the input stream, so it
can ask questions and expect them to be answered. In your experiments with
it, your input stream was the pipe holding the output of echo, and R got
confused because that
Hello,
I am interested in passing a command or two to R on the command
line. The desired behavior is for R to run these commands first, and then
begin an interactive session. For example:
$ R -e 'foo - read.csv(/tmp/foo.csv)'
...which would launch R and execute that command, so when I
Wacek Kusnierczyk wrote:
Duncan Murdoch wrote:
paramValue - 15
source(myRfile.R)
The quotes are necessary, because source(myRfile.R) would go looking
for a variable named myRfile.R, rather than using myRfile.R as the
filename.
why?
i see this question has been ignored, but i
On Tue, Nov 18, 2008 at 4:09 AM, Wacek Kusnierczyk
[EMAIL PROTECTED] wrote:
Wacek Kusnierczyk wrote:
Duncan Murdoch wrote:
paramValue - 15
source(myRfile.R)
The quotes are necessary, because source(myRfile.R) would go looking
for a variable named myRfile.R, rather than using myRfile.R as
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
Brigid Mooney wrote:
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
Is there a better command to use rather than source which would take command
arguments?
I ask because I currently have 6 parameters, will likely have additional
paramaters later, and would like to be able to have default values for each,
if I do not specify new values.
Thanks so much!
On Mon,
On 17/11/2008 9:14 AM, Brigid Mooney wrote:
Is there a better command to use rather than source which would take
command arguments?
I ask because I currently have 6 parameters, will likely have additional
paramaters later, and would like to be able to have default values for
each, if I do
On Mon, 2008-11-17 at 15:12 +0100, Wacek Kusnierczyk wrote:
Duncan Murdoch wrote:
paramValue - 15
source(myRfile.R)
The quotes are necessary, because source(myRfile.R) would go looking
for a variable named myRfile.R, rather than using myRfile.R as the
filename.
why?
Because that
Hi,
I would like start R in BATCH mode and submit my own parameters. Or in other
words, I would like to specify variables from the command line and execute a
script using those.
I have been looking at commandArgs and calling R from the command line under
bash:
R CMD BATCH --no-save --args
On Fri, 4 Jan 2008, Bernd Jagla wrote:
Hi,
I would like start R in BATCH mode and submit my own parameters. Or in other
words, I would like to specify variables from the command line and execute a
script using those.
I have been looking at commandArgs and calling R from the command line
14 matches
Mail list logo