class: center, middle, inverse, title-slide # Reproducible thesis writing with R Markdown ###
Dr. Priyanga D. Talagala
###
Research Lounge Meet, University of Moratuwa
###
18/10/2022
--- class: inverse, middle, center # bookdown R package <img src="fig/bookdown.png" width="20%" style="display: block; margin: auto;" /> - 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 ] --- class: inverse, middle, center .pull-left[ <img src="fig/prithesis.png" width="85%" style="display: block; margin: auto;" /> ].pull-right[ <img src="fig/thesiscode.png" width="100%" style="display: block; margin: auto;" /> ] --- class: inverse, middle, center .pull-left[ <img src="fig/bookdowncover.jpeg" width="75%" style="display: block; margin: auto;" /> ].pull-right[ ## Learn more about bookdown: https://pkgs.rstudio.com/bookdown/ <img src="fig/bookdown.png" width="50%" style="display: block; margin: auto;" /> You can install the package from CRAN as follows: install.packages("bookdown") ] --- class: inverse, middle, center # thesisdown <img src="fig/thesisdownlogo1.png" width="35%" style="display: block; margin: auto;" /> Inspired by the bookdown package <!--This project was inspired by the bookdown package--> --- ## 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: ```r 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. ```r 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. --- class: inverse, middle, center # Tip ### You may need to restart RStudio at this point for the following dialog to show up. --- File > New Project > New Directory Then select **Thesis Project using thesisdown** from the dropdown <img src="fig/thesis_proj1.png" width="70%" style="display: block; margin: auto;" /> --- Give your project a name and specify where you’d like the files to appear <img src="fig/thesis_proj2.png" width="70%" style="display: block; margin: auto;" /> --- ## Directory structure .pull-left[ <img src="fig/thesisfolder1.png" width="60%" style="display: block; margin: auto;" /> ].pull-right[ `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. ] --- <img src="fig/output.png" width="100%" style="display: block; margin: auto;" /> --- .pull-left[ <img src="fig/thesisfolder2.png" width="60%" style="display: block; margin: auto;" /> ].pull-right[ [Generated thesis](https://github.com/RETINALAB/rmd_workshop_with_blogdown/blob/master/static/slides/3Thesisdown/fig/thesis.pdf) <img src="fig/output2.png" width="60%" style="display: block; margin: auto;" /> [To learn more about different thesis templates visit https://github.com/ismayc/thesisdown](https://github.com/ismayc/thesisdown) ] --- class: inverse, middle, center # Coming Soon !!
<i class="fas fa-bell fa-3x faa-ring animated faa-fast "></i>
## morathesisdown An R Markdown thesis template for the University of Moratuwa Development version at : "https://github.com/RETINALAB/morathesisdown" --- # morathesisdown .pull-left[ <img src="fig/uomthesis1.png" width="70%" style="display: block; margin: auto;" /> ].pull-right[ <img src="fig/uomthesis2.png" width="70%" style="display: block; margin: auto;" /> ] --- class: inverse, middle, center
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