summaryrefslogtreecommitdiff
path: root/Rprofile
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2016-10-26 19:29:41 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2016-10-26 19:29:41 +0200
commit13ef1cb8bbeacb61eae286fdacca91d15609654d (patch)
tree8409fb704fa4cf2f87136fa9c09c3b96ac16f39a /Rprofile
parenta37958e13e13a69c0a7c96e97ef21ea5f4c37e38 (diff)
Manage Rprofile
Fix the code to decide if Nvim-R will work. This is not tested with vim 8 though.
Diffstat (limited to 'Rprofile')
-rw-r--r--Rprofile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Rprofile b/Rprofile
new file mode 100644
index 0000000..5b77822
--- /dev/null
+++ b/Rprofile
@@ -0,0 +1,20 @@
+options(pdfviewer="okular")
+options(browser="firefox")
+
+# R package repositories
+local({
+ r <- getOption("repos")
+ r["CRAN"] <- "https://cran.rstudio.com"
+ #r["CRAN"] <- "http://cran.at.r-project.org" # if https does not work
+ #r["eddelbuettel"] <- "https://eddelbuettel.github.io/drat"
+ #r["ghrr"] <- "https://ghrr.github.io/drat"
+ options(repos = r)
+})
+
+if (interactive()) {
+ library(colorout)
+ library(setwidth)
+ # vimcom will generally only be installed on boxes where this is necessary
+ if (requireNamespace("vimcom")) options(vimcom.verbose = 1)
+ # However, vimcom does not get in the way of Nvim-R if it is loaded
+}

Contact - Imprint