R markdown
document.---
title: "rmarkdown_pdf"
author: "Sébastien Renaut"
date: '2018-09-06'
output:
html_document:
toc: yes
theme: cerulean
---
You can specify it when you create a new Rmarkdown
document.
You can also specify it later in the header.
Then, it’s just a matter of kniting the document!
---
title: "rmarkdown_docx"
author: "Sébastien Renaut"
date: '2018-09-06'
output:
word_document:
toc: yes
---
Little documentation, few options & configurations are possible (This is probably not the format that should be promoted, as it moves away from an open source environment).
Can specify a LibreOffice OpenDocument Text (output: odt_document
) or Rich Text Format (output: rtf_document
) instead.
FYI, there is a spellchecker in Rstudio
: Edit >Check Spelling…
---
title: "rmarkdown_pdf"
author: "Sébastien Renaut"
date: '2018-09-06'
output:
pdf_document:
keep_tex: true
toc: yes
---
R tinytex pdflatex
function in R.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?
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
!
tinytex
R package from the console and run install_tinytex()
to install TinyTeX (It may take a few minutes to download and compile, ~150MB).install.packages("tinytex")
library(tinytex)
install_tinytex()
Now compile it as a Word document (.docx)
Add some references by specifying the csl
(eg. csl : ../csl/peerj.csl) and bibliography
(eg. bibliography : ../biblio/test_library.bib in the header.
rticles
rticles
is a (potentially) useful package to format articles according to the specification of a journal.install.packages("rticles")
Right now, few templates available.
Some templates may be slower to render, depending on what LaTeX package need to be installed.
This allows further options in the .Rmd file when going from .tex file to .pdf.
You can build your own .tex template if you know LaTeX…
But, there are also many templates available on the web that you can use.
Here is one I like for manuscripts (Thanks svmiller on )
For example, using this template, I am writing a scientific paper entirely in R markdown.
The only real objection I see against writing manuscript in R markdown
is integrating the comments of co-authors.
Here is a template I like for Curriculum Vitae
---
title: "Untitled"
author: "Sebastien Renaut"
date: "27/02/2019"
output: ioslides_presentation
---