Thanks Yihui, for testing this on 2.0.4. You comment would mean that I would 
have to set my libraries and opts() in each child doc; this is manageable, as 
each chapter (child doc) has its own data sets.

Perhaps its time to move my lyx docs to 2.0.4 (from 1.6.10).

Cheers.

Mateo.


On Monday 16 Jul 2012, Yihui Xie wrote:
> Yes it can (I just verified knitr under 2.0.4). You do not need the
> old hack of branches any more.
> 
> However, I should warn you about one problem: at the moment, the main
> document and the child document are compiled *independently* by two R
> sessions, which means the R objects in two documents cannot be shared
> between them because they are in different workspaces.
> 
> Regards,
> Yihui
> --
> Yihui Xie <xieyi...@gmail.com>
> Phone: 515-294-2465 Web: http://yihui.name
> Department of Statistics, Iowa State University
> 2215 Snedecor Hall, Ames, IA
> 
> 
> On Mon, Jul 16, 2012 at 7:43 AM,  <obregonma...@gmail.com> wrote:
> > Hi all-
> >
> > Can Lyx (v.2) manage sweave or knitr code in a child document? I know that 
> > it could not in v.1.x and my document is made up of branches for each 
> > chapter.
> >
> > Mateo.
> 

Reply via email to