title: How to keep track of the number of runs of an R script per day
body: <p>I am currently looking to write a function in R that can keep track of the number of completed runs of an <code>.R</code> file within any particular day. Notice that the runs might be conducted at different time periods of a day. I did some research on this problem and came across this post (<a href="https://stackoverflow.com/questions/63692472/to-show-how-many-times-user-has-run-the-script">To show how many times user has run the script</a>). So far I am unable to build upon the first commenter's code when converting into <code>R</code> (the main obstacle is to replicate the <code>try....except</code> ). However, I need to add the restriction that the count is measured only within a day (exactly from 00:00:00 AM EST to 24:00:00 AM EST).</p>
  <p>Can someone please offer some help on how to accomplish this goal?</p>