# .Rprofile - brendan o'connor - anyall.org/code
options(showWarnCalls=T, showErrorCalls=T)
options(repos=c("http://cran.cnr.Berkeley.edu"))

Sys.setenv(R_HISTSIZE='100000')

f = pipe("uname")
if (.Platform$GUI == "X11" && readLines(f)=="Darwin") {
  # http://www.rforge.net/CarbonEL/
  library("grDevices")
  library("CarbonEL")
  options(device='quartz')
  Sys.unsetenv("DISPLAY")
}
close(f); rm(f)


## The awesomest libraries
library(plyr)
# library(ggplot2)
library(stringr)
library(RColorBrewer)

if (file.exists("~/util.r")) {
  source("~/util.r")
}

