Calling external Rmd file suppresses code but does not suppress headings

Hello,

I am calling an external markdown like so:

{r autodoc, child='/Users/Santi/Desktop/rProjects/dissertation/analysis/big5Analysis.Rmd', eval=TRUE, include=F}

When I do so the headings from the external file are pasted at the top of the HTML page. How do I suppress those headings (non-bold in screenshot)?

Thanks!

Screenshot 2020-07-06 14.06.09

solved:

{r, code = readLines(knitr::purl("/Users/Santi/Desktop/rProjects/dissertation/analysis/big5DataInspection.Rmd")), eval=TRUE, include=F}

from: https://yihui.org/en/2018/09/code-appendix/

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.