-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Rprofile
28 lines (21 loc) · 793 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
source("renv/activate.R")
if (requireNamespace("magrittr", quietly = TRUE)) {
`%>%` <- magrittr::`%>%`
}
if (requireNamespace("magrittr", quietly = TRUE)) {
`%$%` <- magrittr::`%$%`
}
if (requireNamespace("dplyr", quietly = TRUE)) {
library(dplyr, quietly = TRUE)
}
.First <- function(){
cat("\nWelcome to histopathology template project", date(), "\n", "\n dplyr, %>%, %$% are loaded")
}
.Last <- function(){
cat("\nGoodbye at ", date(), "\n")
}
options(gtsummary.pvalue_fun = function(x) gtsummary::style_pvalue(x, digits = 2))
options(gtsummary.tbl_summary.percent_fun = function(x) sprintf("%.2f", 100 * x))
options(gtsummary.print_engine = "kable")
options(gtsummary.print_engine = "gt")
# options(gtsummary.tbl_summary.percent_fun = function(x) sigfig(x, digits = 3))