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)

Arguments

chapter

filename of chapter to render.

pdf

whether to render to pdf or not, default is to render to word document instead.

Details

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.

Examples

# NOT RUN {
thesisdownrli::single_chapter("01-chap1.Rmd")
thesisdownrli::single_chapter("01-chap1.Rmd", pdf = TRUE)
# }