Run R script from command line - Stack Overflow
If you want the output to print to the terminal it is best to use Rscript Rscript a.R Note that when using R CMD BATCH a.R that instead of redirecting output to standard out and displaying on the terminal a new file called a.Rout will be created. R CMD BA...