Hi Matt,
This is working very well. Thank you. Can I have multiple calls to child in a main document. For example, in my main document I have
<<Chapter3,child='testCh3.Rnw'>>=
@
<<Chapter4,child='testCh4.Rnw'>>=
@
testCh3.Rnw compliles fine. At the top of testCh4.Rnw, i have
<<set-parent, echo=FALSE, cache=FALSE>>=
set_parent('testinclude.Rnw')
@
But I am receiving this error when I try to compile the document
processing file: ./testCh4.Rnw
Quitting from lines NA-185 (./testCh4.Rnw)
Error in parse_block(g[-1], g[1], params.src, markdown_mode) :
Duplicate chunk label 'set-parent', which has been used for the chunk:
set_parent('testinclude.Rnw')
Calls: knit ... process_file -> split_file -> lapply -> FUN -> parse_block
Execution halted
Thanks
David