For longer texts like PhD theses, saving all your text in one single file will make it hard for you to get an easy overview. There are others that have run into the same problem and the bookdown solves this by combining several R Markdown files into one output file. There is even a template for theses at Karolinska Institutet here!

Guides for using bookdown for you thesis