-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Rprofile
27 lines (27 loc) · 860 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
options("width"=120)
options("digits.sec"=3)
library('dplyr')
library('ggplot2')
library('data.table')
library('gridExtra')
library('tidyr')
library('knitr')
library('vimcom')
library('colorout')
# Lines added by the Vim-R-plugin command :RpluginConfig (2014-nov.-16 21:54):
if(interactive()){
if(nchar(Sys.getenv("DISPLAY")) > 1)
options(editor = 'gvim -f -c "set ft=r"')
else
options(editor = 'vim -c "set ft=r"')
# See ?setOutputColors256 to know how to customize R output colors
library(colorout)
library(setwidth)
library(vimcom)
# See R documentation on Vim buffer even if asking for help in R Console:
if(Sys.getenv("VIM_PANE") != "")
options(pager = 'less')
}
options(prompt=">>> ", digits=4, show.signif.stars=FALSE)
setOutputColors(normal = 6, number = 2, negnum = c(3, 0, 2) )
system('clear')