Bioconductor / sweave2rmd

A project for converting Bioconductor Sweave documents to Rmd
Creative Commons Attribution Share Alike 4.0 International
8 stars 20 forks source link

Carriage Return in YAML #27

Open villafup opened 2 years ago

villafup commented 2 years ago

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