Using crontab -e I\'ve tried:
* * * * * Rscript /home/.../file.r * * * * * /usr/lib/R/bin/Rscript /home/.../file.r * * * * * /usr/bin/Rscript /home/.../file
You'll need to have the full path in your foo.sh:
sudo R CMD BATCH /home/.../file.r
I should also add that the first version worked for me, although I set it to a specific time rather than * * * * *
* * * * *