r4ds/_common.R

22 lines
366 B
R
Raw Normal View History

set.seed(1014)
knitr::opts_chunk$set(
comment = "#>",
collapse = TRUE,
2021-04-20 19:48:01 +08:00
# cache = TRUE,
2016-07-18 22:52:55 +08:00
out.width = "70%",
fig.align = 'center',
fig.width = 6,
fig.asp = 0.618, # 1 / phi
fig.show = "hold"
)
options(dplyr.print_min = 6, dplyr.print_max = 6)
2020-10-05 04:08:42 +08:00
2021-04-20 19:48:01 +08:00
# Activate crayon output
options(
crayon.enabled = TRUE,
2021-04-20 21:32:39 +08:00
pillar.bold = TRUE,
stringr.html = FALSE
2021-04-20 19:48:01 +08:00
)