Learn R Programming

rapport (version 0.3)

elem.eval: Evaluate Template Elements

Description

This function grabs template elements from tpl.elem and evaluates them. For rp.block-classed elements just a vanilla evals call is carried out, while rp.inline and rp.heading classes have some additional post-evaluation processing (heading level is stored, as well as "raw" and evaluated chunk contents).

Usage

elem.eval(x, tag.open = get.tags("inline.open"),
    tag.close = get.tags("inline.close"),
    remove.comments = TRUE, rapport.mode = "normal", ...)

Arguments

x
a template file pointer (see tpl.find for details)
tag.open
a string containing opening tag
tag.close
a string containing closing tag
remove.comments
should comments be omitted on evaluation?
rapport.mode
see: ?rapport
...
additional params for grep-like functions

Details

Default parameters are read from options:

  • 'inline.open',
  • 'inline.close'.