+ - 0:00:00
Notes for current slide
Notes for next slide

Reproducible thesis writing with R Markdown

Dr. Priyanga D. Talagala

Research Lounge Meet, University of Moratuwa

18/10/2022

1 / 15

bookdown R package

  • A open-source R package to facilitate writing books and long-form articles/reports with R Markdown.

  • Generate printer-ready books and ebooks from R Markdown documents ]

2 / 15

3 / 15

Learn more about bookdown:

https://pkgs.rstudio.com/bookdown/

You can install the package from CRAN as follows:

install.packages("bookdown")

4 / 15

thesisdown

Inspired by the bookdown package

5 / 15

Prerequisites

  • To compile PDF documents using R, you are going to need to have LaTeX installed.

  • By far the easiest way to install LaTeX on any platform is with the tinytex R package:

install.packages(c('tinytex', 'rmarkdown'))
tinytex::install_tinytex()
# after restarting RStudio, confirm that you have LaTeX with
tinytex:::is_tinytex()
6 / 15

Prerequisites

  • To compile PDF documents using R, you are going to need to have LaTeX installed.

  • By far the easiest way to install LaTeX on any platform is with the tinytex R package:

install.packages(c('tinytex', 'rmarkdown'))
tinytex::install_tinytex()
# after restarting RStudio, confirm that you have LaTeX with
tinytex:::is_tinytex()
  • Install the bookdown and thesisdown packages.
if (!require("remotes"))
install.packages("remotes", repos = "https://cran.rstudio.org")
remotes::install_github("rstudio/bookdown")
remotes::install_github("ismayc/thesisdown")
  • Note that {thesisdown} is not available on CRAN at the moment and that’s why install.packages("thesisdown") won’t work.
6 / 15

Tip

You may need to restart RStudio at this point for the following dialog to show up.

7 / 15

File > New Project > New Directory

Then select Thesis Project using thesisdown from the dropdown

8 / 15

Give your project a name and specify where you’d like the files to appear

9 / 15

Directory structure

index.Rmd: Contains your YAML (metadata) that will tell bookdown how to render your book

.Rmd files that comprise the body of your book

thesis.bib is a bib file containing your references. Most popular reference management tools have the option to export your references to a .bib file.

10 / 15

11 / 15

Coming Soon !!

morathesisdown

An R Markdown thesis template for the University of Moratuwa

Development version at : "https://github.com/RETINALAB/morathesisdown"

13 / 15

morathesisdown

14 / 15

pridiltal and thiyangt

Acknowledgements:

This work was supported in part by RETINA research lab funded by the OWSD, a program unit of United Nations Educational, Scientific and Cultural Organization (UNESCO).

All rights reserved by Thiyanga S. Talagala and Priyanga D Talagala

15 / 15

bookdown R package

  • A open-source R package to facilitate writing books and long-form articles/reports with R Markdown.

  • Generate printer-ready books and ebooks from R Markdown documents ]

2 / 15
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow