Skip to content

Instantly share code, notes, and snippets.

View humburg's full-sized avatar

Peter Humburg humburg

View GitHub Profile
---
title: "Main Document"
author: "Author Name"
date: "`r format(Sys.time(), '%a %d %b %Y')`"
output:
reportMD::multi_document:
toc: true
fig_caption: true
highlight: atom-one-dark
use_namespace: true
@humburg
humburg / title_test.Rmd
Created February 1, 2016 04:28
Simple RMarkdown file to demonstrate use of YAML meta data
---
title: "Test file"
author: Tester
output:
knitrBootstrap::bootstrap_document:
toc: true
theme: amelia
highlight: sunburst
---
import pysam
import tempfile
header = { 'HD': {'VN': '1.0'},
'SQ': [{'LN': 1575, 'SN': 'chr1'},
{'LN': 1584, 'SN': 'chr2'}] }
tmp_file = tempfile.NamedTemporaryFile()
outfile = pysam.AlignmentFile(tmp_file.name, "wh", header=header)
a = pysam.AlignedSegment()
@humburg
humburg / test-caption.Rmd
Created August 28, 2015 14:51
A simple markdown file to test the behaviour of figure captions with knitrBootstrap and rmarkdown.
---
title: Caption test
output:
knitrBootstrap::bootstrap_document:
fig_caption: true
keep_md: true
rmarkdown::html_document:
fig_caption: true
keep_md: true
self_contained: false