This template can be used with R markdown, pdflatex and xelatex. I highly recommend to use natbib and xelatex. R markdown is already set to use them.
To see the result have a look at thesis_rmarkdown.pdf. It is the R markdown compiled version.
Feel free to fork this repo and create pull requests.
Please see the LICENSE.txt file