Learn R Programming

datamart (version 0.3.2)

MdReport-class: Buildable report

Description

The main S4 class in this framework is MdReport. You can create a report with mdreport, which takes a template file name, and a list of variables as arguments. The new generic method build. can then be used to actually produce the report in various formats (markdown, xhtml).

Arguments

Details

strsubst is a simple templating mechanism inspired from Python (PEP-0292). Variables in the template are marked by a preceeding dollar sign and get replaced with the value of the corresponding variables passed to strsubst.