Re: [R] documenting yoru progress

From: Duncan Murdoch <>
Date: Mon, 03 Dec 2007 07:41:30 -0500

On 12/2/2007 6:24 PM, Tom Sgouros wrote:
> Hello all:
> I have a function that writes a fairly elaborate report based on some
> survey data. For documentation and bookkeeping purposes, I'd like to
> write out in the report the function call that produced the report, or
> at least enough information to help me recreate the steps that led to
> that report. I've been generating all the reports with scripts, in
> order to be able to recreate the steps, but apart from the file name, I
> don't yet have a way to match the report to the script that created it.
> Can anyone suggest easy ways to do this? From within a function, is the
> function call text available somehow, or the names of the arguments used
> in the function invocation?

I think Gabor has answered your question directly, but another approach to solve the same underlying problem might be to work with Sweave. (Or ODFweave, etc.)

These allow you to mix R code right into a document that explains the reasoning and includes both the input and output of the script.

Duncan Murdoch mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 03 Dec 2007 - 12:45:29 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 03 Dec 2007 - 13:30:16 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.