title: Reading the old data by R from the some kind of cache
body: <p>I am trying to import some data from the csv files ( which are autosaved from excel files ). Basically what I am trying to do is real time testing of an algo. So the tick data from excel are saved in a csv file and this csv file is picked up by R. </p>
  
  <p>I am using </p>
  
  <pre><code>repeat{ 
  
  SpotData = tryCatch(as.data.frame(read.csv(paste(xinputpath,"AUDJPYTickData.csv",sep=""),header=TRUE,sep=";")), error = function (e) e, warning = function(w) w)
  
  ....calculations...
  
   }
  </code></pre>
  
  <p>For most of the time it reads perfectly at high speed but sometimes, it just doesnt read the new file. No error but it just reads as if the old csv file still exists ( though the old one has been overwritten with new data ). So the SpotData is the same old data even though AUDJPYTickData.csv has a new timestamp with new data..</p>
  
  <p>Has anyone faced this issue ? Appreciate your help.</p>