-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Rprofile
71 lines (43 loc) · 1.25 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
options("width" = 115)
options(pillar.subtle = FALSE)
options(rlang_backtrace_on_error = "none")
options(browser = "firefox")
options(max.print = 1000)
## options(browser = "firefox")
## options(browser = "html_diverter.sh")
options(warnPartialMatchDollar = F)
options("languageserver.rich_documentation" = F)
fstd <- c()
base_pckgs <- c("dplyr", "data.table", "ggplot2" , "magrittr")
pckgs_avbl <- .packages(all.available = T)
pckgs_missing <- setdiff(base_pckgs, pckgs_avbl)
library(utils)
install.packages(pckgs_missing)
print_data_table <- function(x, ...) {
## Adapted from data.table:::as.data.frame.data.table()
## print('printing dt')
ans <- x
attr(ans, "row.names") <- .set_row_names(nrow(x))
attr(ans, "class") <- c("tbl", "data.frame")
attr(ans, "sorted") <- NULL
attr(ans, ".internal.selfref") <- NULL
print(ans, ...)
invisible(x)
}
print.data.table <- print_data_table
library(dplyr)
## library(docstring)
library(data.table)
library(ggplot2)
library(magrittr)
## ds <- docstring
## library(countrycode)
## '%!in%' <- function(x,y)!('%in%'(x,y))
len <- length
adf <- as.data.frame
atb <- as_tibble
adt <- as.data.table
achr <- as.character
anum <- as.numeric
print(getOption("width"))
## ccd <- countrycode