/usr/lib/R/site-library/knitr/examples/child/knitr-parent.Rnw is in r-cran-knitr 1.17-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | \section{Child can specify its parents}
<<setup, include=FALSE>>=
set_parent('knitr-main.Rnw')
@
My parent is \textsf{knitr-main.Rnw}.
<<test-e>>=
1+1
@
I'm not a complete LaTeX document, but you can compile me nonetheless. I'll
borrow the preamble from my parent.
|