BiocStyle (version 2.0.2)

helpers: Specify Rmarkdown document metadata

Description

Helper functions for including metadata in the document header.

Usage

doc_date() pkg_ver(pkg)

Arguments

pkg
character(1), package name

Value

Markdown-formatted character string.

Details

Use doc_date to include document compilation date in the document metadata field 'date', and pkg_ver for package version specification in the 'package' field.

Examples

Run this code

## current date
doc_date()

## package name with version
pkg_ver("BiocStyle")

Run the code above in your browser using DataCamp Workspace