Skip to main content
  1. Posts/

Rmarkdown and markdown notes

·72 words·1 min·
Tim Liu
Author
Tim Liu
Personalizing medicine · MB BChir & Information/Bioengineering BA (Cambridge) · genetics & genomics, machine learning, digital healthcare

This contains notes for Rmarkdown and markdown. All notes for markdown are generally applicable for Rmarkdown.

markdown

Rmarkdown

Markdown extras

Adding toggle

<details><summary>toggle title</summary>
toggle content 
</details>

Image quality

knitr::opts_chunk$set(dpi=300)

Share html report

A report should be self-contained. In xaringan, set self_cotained = TRUE in yaml and download html with Chrome, not Firefox.

For DT, downloaded html from browser does not work - see here. Hence, use the rendered html directly.