Skip to content

Instantly share code, notes, and snippets.

@hadley
Created March 27, 2012 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadley/2219892 to your computer and use it in GitHub Desktop.
Save hadley/2219892 to your computer and use it in GitHub Desktop.
my .Rprofile
.First <- function() {
library(grDevices)
options(
repos = c(CRAN = "http://cran.r-project.org/"),
browserNLdisabled = TRUE,
deparse.max.lines = 2,
device = "quartz")
}
if (interactive()) {
suppressMessages(require(devtools))
.Last <- function() try(savehistory("~/.Rhistory"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment