title: How to run program in R every 10 seconds without Scheduler?
body: <p>I am creating a program in R to get data off an api. Since it is real time pricing data, I need to run the program every 10 seconds.</p>
  
  <p>I was wondering:</p>
  
  <ol>
  <li>What is the most effective way to do this?</li>
  <li>What is the easiest way to add this data to an excel doc?</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/2Mk3w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2Mk3w.png" alt="enter image description here"></a></p>