Wie man ein R-Skript in crontab ausführt

Mit crontab -e habe ich versucht:

* * * * *  Rscript /home/.../file.r
* * * * * /usr/lib/R/bin/Rscript /home/.../file.r
* * * * * /usr/bin/Rscript /home/.../file.r
* * * * * /home/.../foo.sh

wo foo.sh enthält:

sudo R CMD BATCH file.r

Es funktioniert einfach, $ ./foo.sh auszuführen. $ R CMD BATCH file.r funktioniert.

Nichts, was ich in Crontab-Arbeiten ausprobiert habe. Irgendwelche Ideen?

Antworten auf die Frage(3)

Ihre Antwort auf die Frage