A Template for marp

Frank Harrell

Department of Biostatistics
Vanderbilt University School of Medicine
Nashville Tennessee USA

2026-05-28

Slide 1

Biostatistics/Bioinformatics/Data Science needs to be integrated early into

  • Study design
  • Experimental design
  • Measurement selection / outcome variable construction
  • Data quality assurance and completeness
  • Pre-processing
  • Analysis strategy

Slide 2

  • Developed with close collaboration of biostatisticians, bioinformaticists, APS subject matter experts
  • Analysis strategies should maximize the extraction of information from the data
  • SAPs fully developed and adhered to
  • Specific enough to reproduce analyses with minor help
  • Expect SAPs to need updating as many envisioned analyses are complex and not everything can be foreseen

hbiostat.org/bayes/design

Slide 3

  • See below

plot of chunk ggexample

Slide 4

x <- pi
x
[1] 3.141593

marp_yaml as defined in ~/.Rprofile

---
theme: gaia
_class: lead
size: 16:9
style: |
  .sm {
    font-size: 0.75rem;
  }
  blockquote:after {
    content: "";
  }
  blockquote:before {
    content: "";
  }
  blockquote {
    border-top: 0.1em solid #555;
    font-size: 60%;
    margin-top: auto;
  }
paginate: true
backgroundColor: #fff
_paginate: false     # no page number on title slide
marp: true
style: |
  pre, code {
    font-family: "Fira Code", "Cascadia Code", "JetBrains Mono", monospace;
    font-size: 0.85rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: none;
  }
  pre {
    padding: 0.75em 1em;
  }
---

marp_yaml is defined in ~/.Rprofile

Usage: knitrmd marp-r-template marp --html marp-r-template.md knitrmd defined in ~/bin does Rscript -e "knitr::knit('marp-r-template.Rmd', tangle=FALSE, encoding='utf-8')" Make sure the figures subdirectory is available when showing the slides if any R graphics were created. One-time: Put the character variable assignment marp_yaml <- '...' (where ... is defined in the last slide) into your ~/.Rprofile file.

Be sure to sound intelligent when presenting these points.

Footnote starts with >

Notes for slide 3

More notes for slide 3 Break here and here