Learn R Programming

knitcitations (version 0.3-3)

list_to_bibentry: Helper function to make a list of bibentry objects into a single bibentry object containing multiple entries

Description

Helper function to make a list of bibentry objects into a single bibentry object containing multiple entries

Usage

list_to_bibentry(bib)

Arguments

bib
a list of bibentry objects. If already a bibentry class with multiple entries, function returns the input.

Value

  • a bibentry object with multiple entries

Examples

Run this code
bib <- c(citation("knitr"), citation("bibtex"), citation("knitcitations"))
 a <- lapply(bib, knitcitations:::create_bibkey)
knitcitations:::list_to_bibentry(a)

Run the code above in your browser using DataLab