pat_fun: Set regular expressions to read input documents

Description Usage Value Examples

Description

These are convenience functions to set pre-defined pattern lists (the syntax to read input documents). The function names are built from corresponding file extensions, e.g. pat_rnw() can set the Sweave syntax to read Rnw documents.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15

Value

The patterns object knit_patterns is modified as a side effect.

Examples

1
2
3
4
5
6
# see how knit_patterns is modified
knit_patterns$get()
pat_rnw()
knit_patterns$get()

knit_patterns$restore()  # empty the list

yihui/knitr documentation built on Dec. 11, 2018, 3:41 a.m.