$ python example.py
This writes to stdout:
$ Rscript example.R
This creates a file example.Rout:
$ R --vanilla CMD BATCH example.R