R/single_chapter.R
single_chapter.Rd
In general the references in a thesis will be in a separate references section but a student will want an individual chapter to be proof read by someone else (e.g. a supervisor). This function makes this easier by creating a temporary R markdown file adding a references section and with the chapter to be rendered as a child document. More information please see the online vignette.
single_chapter(chapter, pdf = FALSE)
chapter | filename of chapter to render. |
---|---|
whether to render to pdf or not, default is to render to word document instead. |
The function will parse the contents of index.Rmd and find the line which details the bibliography for the thesis and use this for the single chapter. Please make sure index.Rmd is in the working directory.
# NOT RUN { thesisdownrli::single_chapter("01-chap1.Rmd") thesisdownrli::single_chapter("01-chap1.Rmd", pdf = TRUE) # }