2016-01-21 11:48:03 +01:00
|
|
|
## Emacs please make this -*- R -*-
|
|
|
|
## empty Rprofile.site for R on Debian
|
|
|
|
##
|
|
|
|
## Copyright (C) 2008 Dirk Eddelbuettel and GPL'ed
|
|
|
|
##
|
|
|
|
## see help(Startup) for documentation on ~/.Rprofile and Rprofile.site
|
2016-10-18 15:07:47 +02:00
|
|
|
#
|
|
|
|
# NOTE: managed by ansible
|
|
|
|
#
|
2016-01-21 11:48:03 +01:00
|
|
|
local({r <- getOption("repos")
|
2018-09-04 17:32:14 +02:00
|
|
|
r["CRAN"] <- "{{ r_cran_mirror_site }}"
|
|
|
|
options(repos=r)
|
2016-01-21 11:48:03 +01:00
|
|
|
})
|
2018-09-04 17:32:14 +02:00
|
|
|
|
|
|
|
# Explicitly set the R encoding using the system one, if it exists
|
|
|
|
if (file.exists("/etc/default/locale")) {
|
|
|
|
readRenviron("/etc/default/locale")
|
|
|
|
LANG <- Sys.getenv("LANG")
|
|
|
|
if(nchar(LANG))
|
|
|
|
Sys.setlocale("LC_ALL", LANG)
|
|
|
|
}
|
|
|
|
|