R - History

> Procedural Languages > R

1 - Command

  • Save the commands used during the session
savehistory(file="mylog.Rhistory")
  • Load the commands used in a previous session
loadhistory(file="mylog.Rhistory")
  • Display the last 25 commands
history()

You can read mylog.Rhistory with any word processor. The file has to have the extension .Rhistory