inst/rhist_last.R

"# Set path for R history database"
options("rhist.path" = "%s")

.Last <- function() {
  if (interactive()) {
    exec_time <- system.time({
      rhist::save_session_history()
    }, gcFirst = FALSE)
    message("Saved R history in ", exec_time[3], " seconds")
  }
}
mdlincoln/rhist documentation built on May 25, 2019, 10:30 p.m.