I noticed the following problem with cacheSweave. If I want to print the result of a list object, with cache=TRUE option, if I just use summary(x), the output would not appear in the tex file. If I use print(summary(x)) instead, the output would appear.
With cache=FALSE option, however, summary(x) and print(summary(x)) both have the output. Is this a bug for cacheSweave package? %This chunk would not have output <<eval=T,echo=T,results=verbatim,cache=TRUE>>= x=NULL x[[1]]=rnorm(100) x[[2]]=rnorm(100) x[[3]]=rnorm(100) summary(x) @ %This chunk would have output <<eval=T,echo=T,results=verbatim,cache=TRUE>>= print(summary(x)) @ %This chunk would also have output <<eval=T,echo=T,results=verbatim,cache=FALSE>>= summary(x) @ -- View this message in context: http://r.789695.n4.nabble.com/cacheSweave-problem-tp4650868.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.