From 14791034ae51ca03ed923fe60b03c79411d83ba2 Mon Sep 17 00:00:00 2001
From: Frederik Vanrenterghem <frederik@vanrenterghem.biz>
Date: Thu, 12 Sep 2019 20:55:42 +0800
Subject: [PATCH 1/1] Define default CRAN repository.

---
 R/.Rprofile | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 R/.Rprofile

diff --git a/R/.Rprofile b/R/.Rprofile
new file mode 100644
index 0000000..6709b6c
--- /dev/null
+++ b/R/.Rprofile
@@ -0,0 +1,21 @@
+options("width"=160)                # wide display with multiple monitors
+options("digits.secs"=3)            # show sub-second time stamps
+
+r <- getOption("repos")             # hard code the AU mirror for CRAN
+r["CRAN"] <- "http://cran.csiro.au"
+options(repos = r)
+rm(r)
+
+## customize the defaults on X
+setHook(packageEvent("grDevices", "onLoad"),
+        function(...) grDevices::X11.options(width=8, height=8, 
+                                             xpos=0, pointsize=10, 
+                                             #type="nbcairo"))  # Cairo device
+                                             #type="cairo"))    # other Cairo dev
+                                             type="xlib"))      # old default
+
+## from the AER book by Zeileis and Kleiber
+options(prompt="R> ", digits=4, show.signif.stars=FALSE)
+
+
+options("pdfviewer"="evince")   
-- 
2.39.5