Hi,

$ cat commandArgs.R
args=commandArgs(trailingOnly=TRUE)
args[1]+10

I have the above code. But the following command line gives me an error. I
am wondering what is the correct way to convert a string to a vector?

$ Rscript commandArgs.R 1:3
> args=commandArgs(trailingOnly=TRUE)
> args[1]+10
Error in args[1] + 10 : non-numeric argument to binary operator
Execution halted


Regards,
Peng

	[[alternative HTML version deleted]]


