Re: [R] Passing command line parameters to a script

2007-03-07 Thread Oleg Sklyar
#!/bin/sh echo 'a=${1}; b=${2}; source(myRcodeUsing_a_and_b.R); ' | R --vanilla --quiet and you can run this from shell like: ./callR valueOfa valueOfb Best, Oleg akintayo holder wrote: Hi, Does any one know if it is possible to create an R script that can use command line parameters. I

[R] Passing command line parameters to a script

2007-03-06 Thread akintayo holder
Hi, Does any one know if it is possible to create an R script that can use command line parameters. I can execute an R script from the command line, but I cannot figure out how to pass parameters to the script. The only resources I have found seem somewhat involved or incomplete. Any help is

Re: [R] Passing command line parameters to a script

2007-03-06 Thread Xiaohui
Does system(command -arguments) works for you? Xiaohui akintayo holder wrote: Hi, Does any one know if it is possible to create an R script that can use command line parameters. I can execute an R script from the command line, but I cannot figure out how to pass parameters to the script.

Re: [R] Passing command line parameters to a script

2007-03-06 Thread Dimitris Rizopoulos
://med.kuleuven.be/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm - Original Message - From: akintayo holder [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Tuesday, March 06, 2007 9:11 AM Subject: [R] Passing command line parameters to a script Hi, Does any one