-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.Rprofile
28 lines (21 loc) · 858 Bytes
/
.Rprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/Rscript
#print('This is ~/.Rprofile')
# A good resource for .Rprofile tips can be found here:
# https://www.r-bloggers.com/fun-with-rprofile-and-customizing-r-startup/
# when on the Chromebook, change the default device to CairoPNG:
if (Sys.info()['nodename']=='localhost')
options(device= Cairo::CairoPNG)
# set the default mirror
options(repos=c(CRAN="https://ftp.osuosl.org/pub/cran"))
# fancy prompt
options(prompt='\001\033[32m\002R➔ \001\033[39m\002') # \001 and \002 delimit zero-width characters per readline.h
options(width='120') # wider terminal output
options(pdfviewer='zathura') # wider terminal output
options(menu.graphics=FALSE) # don't use the awful pop-up windows
# uncomment to get stack traces on errors:
#options(error = function() {
# dump.frames()
# print(last.dump)
# }
#)
source('~/.Renviron')