I am automating some webscraping with R in cron and sometimes I use R CMD BATCH and sometimes I use Rscript.
To decide which one to use I mainly focus if I want the .Rout file or not.
But reading the answers to some questions here in SO (like this or this) it seems that Rscript is preferred to R CMD BATCH.
So my questions are:
Besides the fact that the syntax is a little different and
R CMD BATCHsaves an.Routfile whileRscriptdoes not, what are the main differences between the two of them?When should I prefer one over another? More specifically, in the
cronjob above mentioned, is one of them preferred?I have not used yet
littler, how is it different from bothRscriptandR CMD BATCH?