knitrSetup: Set knitr up the way I like it

Description Usage Arguments Examples

View source: R/knitrSetup.r

Description

This code sets some of the values for knitr that I like.

Usage

1
2
3
4
5
6
7
knitrSetup(flavor = "tex", rootDir = getwd(), use.tikz = FALSE,
  cache.use.time = FALSE, fig.folder = "graphics", fig.prefix = "fig_",
  cache.folder = "cache", cache.prefix = "out_", formatR.arrow = TRUE,
  code.width = 50, fig.height = 5, fig.width = 5, fig.align = "center",
  fig.show = "hold", crop = TRUE, tidy = TRUE, fig.pos = "H",
  par = TRUE, tikzLatex = "/usr/texbin/pdflatex", tikz.sanitize = TRUE,
  tikz.crop = TRUE, return_opts = NULL)

Arguments

rootDir

character value, optional argument (defaults to working directory)

use.tikz

logical value, optional argument (default FALSE)

cache.use.time

logical value, optional argument (default FALSE)

fig.folder

character value, optional argument (default 'graphics')

fig.prefix

character value, optional argument (default 'fig_')

Examples

1
knitrSetup(use.tikz = FALSE)

imouzon/usefulR documentation built on May 18, 2019, 4:46 a.m.