Running an R script programmatically
For windows, use the task scheduler to set the task to run for example daily at 4:00 AM

It gives you many other options regarding frequency etc.
http://en.wikipedia.org/wiki/Windows_Task_Scheduler