Re: [R] sweave options with variable

2011-04-17 Thread Henrik Bengtsson
[Forgot to cc: the list] Hi. On Sun, Apr 17, 2011 at 8:04 AM, Kai Ying 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 decid

Re: [R] sweave options with variable

2011-04-17 Thread Gabor Grothendieck
On Sun, Apr 17, 2011 at 11:04 AM, Kai Ying 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. >

Re: [R] sweave options with variable

2011-04-17 Thread Kai Ying
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

Re: [R] sweave options with variable

2011-04-17 Thread Duncan Murdoch
On 11-04-17 2:41 AM, Kai Ying wrote: hello: Do any one know how to set sweave option by variable, for example I want set some of my selected code chunk with: <>= rather than<>=, so I can change the action only in the head by change the variable "needRun" one times. I have tried use "\Def" an

[R] sweave options with variable

2011-04-16 Thread Kai Ying
hello: Do any one know how to set sweave option by variable, for example I want set some of my selected code chunk with: <>= rather than <>=, so I can change the action only in the head by change the variable "needRun" one times. I have tried use "\Def" and "\newcommand", both do not work, so I