Never mind, it works under R2 .6.0. Sorry, for not checking it earlier . 

Thanks, 
Vadim 

----- Forwarded Message ----- 
From: " Vadim Ogranovich " < vogranovich @ jumptrading .com> 
To: r-help @ r-project .org 
Sent: Monday, December 17, 2007 3:43:24 PM ( GMT-0600 ) America/Chicago 
Subject: names in Rscript -e 


Hi, 

I seem to have a problem when passing named parameters to R via Rscript ( R2 .5.1, bash shell). As soon as I name elements of a list Rscript generates an error. 

I will appreciate if someone could point to me a correct way of doing this. 

Thanks, 
Vadim 

## This works 
bash-3 .2$ Rscript . exe -e 'list (1)' 
[[1]] 
[1] 1 

# and these do not work 
bash-3 .2$ Rscript . exe -e 'list (a=1)' 
Error in -args : invalid argument to unary operator 
Execution halted 

bash-3 .2$ Rscript . exe -e 'list (\"a\"=1)' 
Error in -args : invalid argument to unary operator 
Execution halted 


	[[alternative HTML version deleted]]

