Skip to content

Instantly share code, notes, and snippets.

@kbroman
Created April 28, 2015 15:54
Show Gist options
  • Save kbroman/79130e7a2ee728ab098c to your computer and use it in GitHub Desktop.
Save kbroman/79130e7a2ee728ab098c to your computer and use it in GitHub Desktop.
## Stuff from Karl's ~/.Rprofile file
## hate those stars and scientific notation
options(show.signif.stars=FALSE, scipen=10)
## rstudio as my cran mirror
options(repos="http://cran.rstudio.com",
CRAN = "http://cran.rstudio.com",
browserNLdisabled = TRUE,
deparse.max.lines = 2)
## I always want to load magrittr
library(magrittr)
## if interactive, I want to load devtools
if (interactive()) {
suppressMessages(require(devtools))
}
## This makes it so a small cat reports your error message
options(error= function() cat(' \\\ \n \\\
/\\_/\\
( o.o )
> ^ <\n\n'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment