bib2md: Convert bib entries to markdown for printing citations in...

View source: R/citation.R

bib2mdR Documentation

Convert bib entries to markdown for printing citations in text

Description

This is a convenience wrapper function for printing full csl-style bibliographic entries in the middle of an R Markdown document.

Usage

bib2md(cite_key, bib_file, csl_file = "apa.csl")

Arguments

cite_key

character vector, a vector of citation keys from a .bib file

bib_file

string, path to .bib file

csl_file

sting, name of csl style file, default is apa.csl

Value

markdown The markdown to be written into the R Markdown document. Suggested use case is to call this function in an R code chunk with results="asis"


CrumpLab/crumplabr documentation built on June 29, 2023, 11:25 a.m.