Get command history timestamps programmatically

Is it possible to get the command history in rstudio including the corresponding timestamps (when code was executed) programmatically?

I saw in this post, that if you search for a term in the rstudio IDE history panel, time stamps are shown.

However, if i read the history via read.table(".../.Rhistory") i dont get these timestamps.

This isn't retroactive, but the matahari package might help you going forward:


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.