I am new to cron. I want to execute r script on regular basis using cron. I just added the job to crontab to check if it is working. But unfortunately, nothing is working. I wrote a test script and scheduled it for every 5 mins in cron job.
Here is test R script:
print('HI')
cronjob:
5 * * * * sudo Rscript /path/to/script/test.R
but when I execute it from terminal, it works fine.
terminal command:
sudo Rscript /path/to/script/test.R
Please tell me if I am missing something here. I was trying to make it run for every 5 minutes.