title: R Language - Adding timestamp to console output
body: <p>I'm using sink() for logging purposes for running R-Scripts, which works fine.</p>
  
  <p>*<strong>R> sink(file = paste(Log_Path, FileName), append = TRUE, type = c("output"), split = TRUE)*</strong></p>
  
  <p>I'm now doing performance tests and needing to find out how long certain parts of the R-Script runs, without adding tons of print statements.</p>
  
  <p>This solution works, via in RGui Interface:</p>
  
  <p><em><strong>R> updatePrompt &lt;- function(...) {options(prompt=paste(Sys.time(),"> ")); return(TRUE)}</em></strong></p>
  
  <p><em><strong>R> addTaskCallback(updatePrompt)</em></strong></p>
  
  <p>However, The time prompts doesn't propagate back into the Console stream of sink() when running in the R-Server.</p>
  
  <p>Suggestions?</p>
  
  <p>I've explored txtStart , but not sure if that's what I need.
  Is there a different package or a option to set to set the timestamp in the prompt in the sink() console output?</p>
  
  <p>Thanks for any help...</p>