-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_common.R
More file actions
34 lines (29 loc) · 851 Bytes
/
_common.R
File metadata and controls
34 lines (29 loc) · 851 Bytes
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
set.seed(1011)
knitr::opts_chunk$set(
comment = "#>",
collapse = TRUE,
out.width = "70%",
fig.align = "center",
fig.width = 6,
fig.asp = .618,
fig.pos = "H"
)
knitr::knit_hooks$set(document = function(x) {
sub("\\usepackage[]{color}", "\\usepackage{xcolor}", x, fixed = TRUE)
})
# tidyverse -----------------------------------
library(tidyverse)
# data.table ----------------------------------
library(data.table)
# useful looping construct --------------------
library(foreach)
# R and C++ integration -----------------------
library(Rcpp)
# tools for r markdown ------------------------
library(rmdtool)
# assistant tools for ggplot ------------------
library(goodgraphic)
# rounding digits ------------------------------
options(digits = 3)
# pander table remove NA ----------------------
pander::panderOptions("missing", "")