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]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to