summaryrefslogtreecommitdiff
path: root/Rprofile
blob: 177a2d0f06beab795d083436c1042bc523d0fb7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)
  # Load vimcom only if R was started by vim
  if(Sys.getenv("VIMRPLUGIN_TMPDIR") != "") {
    options(vimcom.verbose = 1)
    library(vimcom)
  }
}

# For (re)installing PythonInR
#Sys.setenv(USESPECIALPYTHONVERSION="python3.5")

Contact - Imprint