It seems, I don't understand something, or there is a bug in R. I have made some experiments after my yesterday post about using "=" with -e switch to the Rscript.
Now, I've found: (1) C:\users\wl\trainings\r>rscript --verbose -e "mean(x=1:3)" running 'C:\Program Files\R\bin\Rterm.exe --slave --no-restore -e mean(x=1:3)' Error in -args : invalid argument to unary operator Execution halted (2) C:\users\wl\trainings\r>Rterm --slave --no-restore -e "mean(x=1:3)" Nothing is printed on the console, but the window appears, saying "R for Windows terminal front-end has encountered a problem and needs to close. We are sorry for the inconvenience." (3) C:\users\wl\trainings\r>rscript --verbose -e "mean(1:3)" running 'C:\Program Files\R\bin\Rterm.exe --slave --no-restore -e mean(1:3)' [1] 2 (4) C:\users\wl\trainings\r>Rterm.exe --slave --no-restore -e "mean(1:3)" [1] 2 (5) C:\users\wl\trainings\r>Rterm.exe --slave --no-restore -e 'mean(1:3)' [1] "mean(1:3)" Points (1) and (2) don't seem normal to me, however, I don't see, what I am doing wrong. I use windowsXP Pro, my colleague uses windows 2000 and reports the same problems. My sessionInfo(): > sessionInfo() R version 2.5.1 Patched (2007-08-19 r42614) i386-pc-mingw32 locale: LC_COLLATE=Russian_Russia.1251;LC_CTYPE=Russian_Russia.1251;LC_MONETARY=Russian_Russia.1251;LC_NUMERIC=C;LC_TIME=Russian_Russia.1251 attached base packages: [1] "stats" "graphics" "grDevices" "utils" "datasets" "methods" [7] "base" -- View this message in context: http://www.nabble.com/About-%22%3D%22-in-command-line-in-windows.-tf4360278.html#a12426839 Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@stat.math.ethz.ch 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.