Does RStudio history have timestamp for actions

I want to save my history, so I use the little disk icon.

When I open it using a notepad++ editor, I get the raw text.

Is there a setting where I can get some metadata, like timestamp that it tried to run, the name of the working directory or project, whether or not it returns an error or warning?

What are my options there, and how do I access them?

No, this feature is not part of RStudio. However, it would be very easy to build yourself! R has a feature that will call a function of your choice every time a command finishes running. Inside that function, you could log the command to disk along with your desired metadata. Docs here:


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.