function that makes my loop to run after every x mins

后端 未结 2 1830
说谎
说谎 2021-01-16 17:53

I want a r function which makes my loop to run after evey 5 mins. I have a loop that downloads market data from google finance.I want this loop to run in the interval of eve

2条回答
  •  情话喂你
    2021-01-16 18:15

    You can use Sys.sleep(100) to stop execution for 100 seconds. It's a little inefficient vs. running some other process in the same instance and setting up a proper timer. But it's pretty easy.

提交回复
热议问题