From: Rafael A. Irizarry (ririzarr@jhsph.edu)
Date: Wed 24 Dec 2003 - 02:44:38 EST
Message-id: <Pine.LNX.4.44.0312231038420.25968-100000@blinux08.biostat.jhsph.edu>
Using Sweave in the tools library (R version 1.8.0: sorry i havent
upgraded), it seems i cant use if statements in R chunks that make graphs.
i have this:
<<fig=TRUE,echo=F>>=
par(mfrow=c(1,1))
if(exists("x"))
plot(x,x)
else{
plot(1,1,type="n")
text(1,1,"data not available.\n")
}
@
and I get this error:
Error: chunk 6
Error in parse(file, n, text, prompt) : parse error
any help is appreciated.
thanks and apologies if this not a problem in R 1.8.1
rafael
______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
This archive was generated by hypermail 2.1.3 : Thu 01 Jan 2004 - 09:20:59 EST