-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.Rprofile
32 lines (26 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
28
29
30
31
32
.libPaths('~/R/practice_lib')
# hacks from https://github.com/emacs-ess/ESS/issues/1193
options(pillar.subtle = FALSE)
options(rlang_backtrace_on_error = "none")
invisible(addTaskCallback(function(...) {
if (interactive()) {
# Remember to install crayon
try(cat(crayon::reset("")), silent = TRUE)
}
TRUE
}, name = "ansi_reset"))
# stop asking to save workspace
# breaks LSP?
# https://stackoverflow.com/a/4996252
## utils::assignInNamespace(
## "q",
## function(save = "no", status = 0, runLast = TRUE)
## {
## .Internal(quit(save, status, runLast))
## },
## "base"
## )
# https://stackoverflow.com/a/1189826
options("width"=160) # wide display with multiple monitors
options("digits.secs"=3) # show sub-second time stamps
options(prompt="R> ", digits=4, show.signif.stars=FALSE)