Skip to content

Instantly share code, notes, and snippets.

@ramhiser
Created November 19, 2011 09:02
Show Gist options
  • Save ramhiser/1378639 to your computer and use it in GitHub Desktop.
Save ramhiser/1378639 to your computer and use it in GitHub Desktop.
.Rprofile
.First <- function() {
options(
repos = c(CRAN = "http://cran.fhcrc.org/"),
browserNLdisabled = TRUE,
deparse.max.lines = 2
)
}
# This code is copied directly from ?savehistory
# It saves the history of commands from interactive sessions to my home path
# when R is closed.
.Last <- function() {
if (interactive()) try(savehistory("~/.Rhistory"))
}
if (interactive()) {
suppressMessages(require(devtools))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment