Skip to content
Back to formatted view

Raw Message

Message-ID: <4D4095CA.4050206@gmail.com>
Date: 2011-01-26T21:44:42Z
From: Duncan Murdoch
Subject: Sweave: \Sexpr{} inside <<>>?
In-Reply-To: <1296074613778-3238764.post@n4.nabble.com>

On 11-01-26 3:43 PM, zerfetzen wrote:
>
> Thanks Duncan, that helps.  It successfully displays what I'm looking for,
> but it is not executing it.  In a previous code chunk, it notes the time it
> took to run something, and in the successive code chunk, it runs something
> else where the previous time is now a parameter, but I'd like it to
> numerically display that previous time in the new chunk, rather than a
> variable name I create for it behind the scenes.  Is this possible?  Many
> thanks.

Of course it's possible, but it'll need ugly trickery.  Just do every 
calculation in a hidden chunk, then use code like I did to fake a 
display of it.

Duncan Murdoch