aL3xa/rapport — Issue #6: rapport class: add "call" or "src" of called command
Author: daroczig
Created: 2012-01-04 12:03:14+00:00
State: open
Labels: feature, graphs, template

`rapport` class has many useful information in its structure like `metadata` and `inputs` besides the most important `report`.

Unfortunately `metadata` and `inputs` are only based on template and not dealing with the command that returned the `rapport` class - which would be really handy to.

The structure looks like now:

res <- list(
metadata = meta,
inputs = inputs,
report = report
)

I would suggest adding something like `src` or `call` to that list holding the raw command, eg..:

res <- list(
metadata = meta,
inputs = inputs,
call = match.call(),
report = report
)

I just did not wanted to modify your function, but if you would not have time and currently not working on template.R, just reply here and will take care of that modification. That would be important for exporting multiple examples to GH pages ATM but I would easily imagine other situations too when that would be handy (eg. saving a `rapport` class to disk and later loading again to find out where the data sourced).