Skip to content
Prev 32687 / 398526 Next

R CMD BATCH --vanilla --slave produces unwanted lines

Robin Hankin <r.hankin at auckland.ac.nz> wrote:

            
...
Why not just run:
unix> R --vanilla --slave < test.R > test.out

Then the "options(echo=FALSE)" line is unnecessary.  Note an explicit q()
at the end of the script eliminates a single blank line that occurs otherwise.
So the test.R script is just:

  write(rnorm(4),"")
  q()