On Sun, Apr 17, 2011 at 11:04 AM, Kai Ying <yi...@iastate.edu> wrote: > thanks, > It can work but not as elegant as I expect because it add extra code to > every chunk of code. > I have tried the cache for this purpose it works in most case but have a lot > of other problems so I decided to control it by myself. > I guess that sweave running R code before tex, so tex variable do not work > and need find something run before sweave and set the variable, > but it seems currently no way do that. Write my own Sweave driver is too > hard for me hope in the future someone can refine the sweave driver. > best wishes >
You may be better off just directly emit the latex from R (not using Sweave at all). Another alternative is the brew package. -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.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.