(test.rnw, driver=RweaveHTML)
+ }
f1()
ls()
[1] f1
load(tmp.RData)
ls()
[1] f1 x y
From: Duncan Murdoch [EMAIL PROTECTED]
To: Tao Shi [EMAIL PROTECTED]
CC: r-help@stat.math.ethz.ch
Subject: Re: [R] can't use Sweave in a function?
Date: Thu, 10 May 2007 21:46:27 -0400
On 10/05/2007 9:08 PM, Tao
Hi List,
Please see the following simple example which illustrate the problem. I'm
using R-2.5.0 in WinXP and
R2HTML 1.58.
Thanks,
Tao
#=test.rnw =
html
body
div
h1 align=centerReport/h1
p
echo=FALSE,results=html=
print(y)
print(\n)
print(paste((, x,
On 10/05/2007 9:08 PM, Tao Shi wrote:
Hi List,
Please see the following simple example which illustrate the problem. I'm
using R-2.5.0 in WinXP and
R2HTML 1.58.
The code in an Sweave document needs to be self-contained. It won't see
variables in some other R session.
If you want to