1

I want to automatically run/ execute my R script when a Text file is updated. So far, I only can schedule an execution of my R script for a specific time (per hour, daily or month) see (Scheduling R Script).

So, if my Text file is updated, I want that R gets executed directly.

I have tried to adjust the "trigger" tab in windows scheduler. But I couldn't figured that out.

Help is really appreciated! Thanks in advance!

R overflow
  • 1,292
  • 2
  • 17
  • 37
  • One way is a scheduled script that regularly keeps track of the updates and executes the other script if updated. – niko Jan 25 '19 at 12:07
  • Thanks Nate! Do you have an example perhaps? Appreciated! – R overflow Jan 25 '19 at 12:10
  • Try a websearch for "Win32 Directory Change Notifications API" or the ".NET FileSystemWatcher() API" maybe you can find some small program that watches the file/directory for you, or a blogpost that helps you out. – knb Jan 25 '19 at 13:35

0 Answers0