How to run program in R every 10 seconds without Scheduler? -
this question exact duplicate of:
i creating program in r data off api. since real time pricing data, need run program every 10 seconds.
i wondering:
- what effective way this?
- what easiest way add data excel doc?
use sys.sleep()
i = 1 while(true){ if (i %% 11 == 0){ break #a condition break out of loop #write.table() #but maybe want write results #to table after number of iteration } print(i) #run code sys.sleep(time = 1) #time in seconds = + 1 }
Comments
Post a Comment