Monitoring with the R

2

I have a tracking script and would like to run it every five minutes, is there any function that does this?

For example:

função (meu_script, repetir= 5 minutos)

I tried some functions with Sys.time() and proc.time() , but I did not get anything useful.

    
asked by anonymous 28.02.2018 / 18:12

1 answer

5

Instead of inserting the replay time within your function, try to use it with the repeat function. Example with 5 second interval:

repeat{
  função()
  Sys.sleep(5)
} 
    
28.02.2018 / 19:11