I have trouble to schedule a task I wrote.
Basically I created a .bat file which executes an R script (script.R). When I double click the .bar file, it gets executed. I can see a result file and also some kind of log file in script.Rout.
When I try to run everything in the scheduler I have problem to get it to run. When I click on Run to run my task, the task produces several entries in the History tab which shows my task starts, and also ends in the same second. So basically nothing gets executed.
Where can I check what problem occurs? My script writes some output which is located within this .Rout file but this is not created with the task scheduler.
I already added my user to the policy settings to schedule task and also by editing the task, windows does not complain, I think this is not the issue.
Would love to get some help to find the problem.
EDIT:
I realised now, my task is running as long I do not select Execute task whether user is logged in or not. If I switch to this setting, my script does not get executed. Is there maybe some security issue?


