The goal of ReproducibleReprots is to go through an exercise where you can go through many phases that could be used for reproducible research:
For this we will need the bookdown, sf, tidyverse, rmarkdown, tinytex, and redoc packages, which you can install them by running the code
install.packages(c("bookdown", "sf", "tidyverse", "rmarkdown", "tinytex", "plotly"))
And for redoc using the following one
remotes::install_github("noamross/redoc")
Once you have installed all those packages it is highly recomended that you run the following code:
tinytex::install_tinytex()
This will install a small latex generator in your r environment, which will result in the option to render PDF reports
In this workshop we will see how you can use rmarkdown to generate reproducible documents that can become the webpage of a project, including interactive plots and documents. Presentations with interactive elements and even fully rendered manuscripts.
- Clone a repository (this one).
- Generate a report with bookdown, using the template in this repo.
- Add bibliography (.bib file) to manage your references.
- Add a couple of plots and use crossreferences for it.
- Generate a pdf report.
- Generate a .docx report, send it to someone else to edit it and check the control changes using the redoc package.
- if we have time, we can add a ioslides presentation
- Generation of latex documents and further editing with overleaf