The help for options says:
echo: logical. Only used in non-interactive mode, when it controls
whether input is echoed. Command-line options `--quiet' and
`--slave' set this initially to `FALSE'.
I don't think that this is correct for me.
Consider the following session:
mica|junk> ls
test.R
mica|junk> cat test.R
cat("Why was this command echoed?\n")
mica|junk> R CMD BATCH --quiet test.R
mica|junk> ls
test.R test.Rout
mica|junk> cat test.Rout
invisible(options(echo = TRUE))
cat("Why was this command echoed?\n")
Why was this command echoed?
[1] 1.13 0.11 1.20 0.00 0.00
mica|junk>
Either using --quiet should set echo to FALSE (my personal preference) or the
documentation for options should be changed.
Apologies if I have misunderstood something here.