Bioconductor/sweave2rmd

Troubleshooting FAQ

Opened this issue · 1 comments

Start a troubleshooting document where we can add questions and answers for common issues that we run into.

Adding a carriage return in YAML header:

If you need to add a carriage return to the YAML header as shown in attached screenshot, add a "|+" in the section where the carriage return is needed (here under date), followed by a return. After the first line, add 2 returns.

title: "2. Using filterVcf to Select Variants from VCF Files"
author: "Paul Shannon"
date: |+
    Created: 20 February, 2013
    
    Last Modified: `r format(Sys.Date(), "%B %d, %Y")`
vignette: >
  %\VignetteIndexEntry{2. Using filterVcf to Select Variants from VCF Files}
  %\VignetteDepends{VariantAnnotation}
  %\VignettePackage{VariantAnntation}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteIndexEntry{Quick-start Guide}
  %\VignetteEncoding{UTF-8}
output:
  BiocStyle::html_document:
    number_sections: yes
    toc: yes
    toc_depth: 4