pat_rnw

0th

Percentile

Set regular expressions to read input documents

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
pat_rnw()

pat_brew()

pat_tex()

pat_html()

pat_md()

pat_rst()

pat_asciidoc()

pat_textile()

Value

The patterns object knit_patterns is modified as a side effect.

Aliases
  • pat_rnw
  • pat_brew
  • pat_tex
  • pat_html
  • pat_md
  • pat_rst
  • pat_asciidoc
  • pat_textile
Examples
# NOT RUN {
# see how knit_patterns is modified
knit_patterns$get()
pat_rnw()
knit_patterns$get()

knit_patterns$restore()  # empty the list
# }
Documentation reproduced from package knitr, version 1.16, License: GPL

Community examples

Looks like there are no examples yet.