R Packages for UHH Templates
Two R packages are available for the Department of Biology at Universität Hamburg, providing ready-to-use templates in the UHH corporate design:
- UHHformats – R Markdown and Quarto templates for reports, assignments, and cheat sheets
- UHHthesis – Templates for Bachelor and Master theses (as R package and as Quarto extension)
Both packages produce output documents in PDF, Word, and/or HTML directly from R Markdown or Quarto source files.
General guidance on writing and submitting your thesis (independent of the template) can be found under Resources → Theses.

UHHformats – Document and Report Templates
The UHHformats package provides ready-to-use R Markdown and Quarto templates following the University of Hamburg corporate design. The templates are suitable for lecture materials, reports, assignments, and cheat sheets.
Available Templates
| Template | Rmd Function | Quarto Template |
|---|---|---|
| HTML Document | html_doc() |
html_doc |
| Simple PDF | pdf_doc() |
pdf_doc |
| PDF Report | pdf_report() |
pdf_report |
| PDF Cheat Sheet | pdf_cheatsheet() |
pdf_cheatsheet |
| Word Document | word_doc() |
word_doc |
Detailed tutorials and examples can be found on the UHHformats website.
Installation
# Recommended: with pak
if (!require("pak")) install.packages("pak")
pak::pak("uham-bio/UHHformats")
# Alternatively: with remotes
if (!require("remotes")) install.packages("remotes")
remotes::install_github("uham-bio/UHHformats", build_vignettes = TRUE)- For PDF output, a LaTeX distribution is required (e.g. TinyTeX):
tinytex::install_tinytex() - For Quarto templates, the Quarto CLI is required.
Template Gallery (Quarto Templates)
Demo Files

UHHthesis – Thesis Templates
Two tools are available for creating UHH-compliant Bachelor and Master theses, automatically fulfilling the MIN Faculty formatting requirements (title page, structure, declaration of authorship):
| quarto-UHHthesis | UHHthesis R Package | |
|---|---|---|
| Framework | Quarto Extension | R Markdown / bookdown |
| Languages | R, Python, Julia, Observable | R |
| IDEs | RStudio, Positron, VS Code, … | RStudio |
| Installation | Terminal (quarto use template) |
R (remotes::install_github) |
| Status | ✅ Recommended | ⚠️ Legacy, still usable |
For new projects, we recommend the quarto-UHHthesis Extension, as Quarto is actively developed and offers more flexibility.
quarto-UHHthesis Extension
Quarto extension with templates for BSc and MSc theses in German and English. No R required – works with any programming language and any editor.
# English template
quarto use template uham-bio/quarto-UHHthesis/en
# German template
quarto use template uham-bio/quarto-UHHthesis/deDetailed tutorials can be found on the UHHthesis website:
UHHthesis R Package (Legacy)
R package based on R Markdown and bookdown with four templates (PDF and Word, DE/EN each). Still usable, but quarto-UHHthesis is recommended for new projects.
if (!require("bookdown")) install.packages("bookdown")
if (!require("remotes")) install.packages("remotes")
remotes::install_github("uham-bio/UHHthesis", build_vignettes = TRUE)Tutorials and vignettes can be found on the UHHthesis website and directly in the package with vignette("uhhthesis-tutorial-en") or vignette("uhhthesis-tutorial-de").
Example Files
Further Resources
- UHHformats Website – Documentation and tutorials
- UHHthesis Website – Documentation and tutorials
- UHHformats on GitHub
- UHHthesis on GitHub
- quarto-UHHthesis on GitHub
- Quarto Documentation
- TinyTeX – LaTeX distribution for R users





