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: