Scheduling the R Script through Windows Task Schedular

Hello Community,

I am new to R Scripts and have Zore Experiance Hence I am seeking your Suggestions on how to schedule the Batch Jobs to automate then in Windows Server with Task Schedular.

Script to run is and contants of myjob.bat:
@echo off
"C:\Program Files\R\R-4.0.2\bin\x64\R.exe" CMD BATCH --vanilla --slave "I:\Power BI Codes\My Codes\Wonder Report.R"

What I have tried so far is:

  1. Manual execution of R Script will run without any issue.
  2. Manual execution of Batch job will run without any issue.
  3. It only fails execution through Windows Task Schedular OS Windows 2016.
  4. Other batch Jobs (non-R Scripts) will execute in Windows Task Schedular without any issue.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.