set_knitr_options: Set consistent knitr options

Description Usage Arguments

View source: R/set_knitr_options.R

Description

Set consistent knitr options

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
set_knitr_options(
  tidy = FALSE,
  echo = TRUE,
  highlight = TRUE,
  comment = "#>",
  collapse = TRUE,
  cache = TRUE,
  fig.align = "center",
  fig.width = 4,
  fig.height = 4,
  linewidth = 59,
  fig.retina = 1,
  out.width = "100%",
  out.height = "100%",
  dev = NULL,
  dpi = 192,
  dev.args = list(png = list(type = "cairo-png")),
  ...
)

Arguments

tidy

FALSE

echo

TRUE

highlight

TRUE

comment

#>

collapse

TRUE

cache

TRUE

fig.align

center

fig.width

4

fig.height

4

linewidth

Code chunk line width - default 59

fig.retina

Default 1

out.width

Output width default 100%

out.height

Output height default 100%

dev

If NULL & language R, then cairo_pdf. Otherwise, pdf.

dpi

If changed to png, set to 192

dev.args

If dev changed to png, use cairo-png

...

Additional arguments passed to opt_chunk


jr-packages/jrNotes documentation built on Dec. 18, 2020, 11:07 p.m.