Outputs

1 html document

---    
title: "rmarkdown_pdf"    
author: "Sébastien Renaut"    
date: '2018-09-06'    
output: 
  html_document: 
    toc: yes 
    theme: cerulean 
--- 

2 Microsoft Word

---  
title: "rmarkdown_docx"  
author: "Sébastien Renaut"  
date: '2018-09-06'  
output: 
  word_document: 
    toc: yes
---   

3 Portable Document Format (.pdf)

---    
title: "rmarkdown_pdf"    
author: "Sébastien Renaut"    
date: '2018-09-06'    
output: 
  pdf_document:
    keep_tex: true
    toc: yes  
---    

3.1 LaTeX

  • LaTeX software is a high-quality typesetting system.

  • It is the de facto standard for the communication and publication of scientific documents.

  • LaTeX is available as a free software.

  • If interested, follow this discussion: Why LaTeX is such a bloated system?

  • So…TinyTeX
    • A custom LaTeX distribution that is small in size (~150MB) but functions well in most cases, especially for R users .
    • tinytex is an R studio package that installs TinyTeX.
  • You should now have all the tools to generate your fully reproducible manuscripts in R!

4 Exercice 1

install.packages("tinytex")  
library(tinytex)  
install_tinytex()  

5 Further customization

5.1 rticles

  • R packages rticles is a (potentially) useful package to format articles according to the specification of a journal.
install.packages("rticles")
  • Once installed, you can start a new R markdown document according to your journal of interest.