Learn R Programming

stevemisc (version 1.8.0)

prepare_refs: Prepare bib2df Data Frame for Formatting to Various Outputs

Description

prepare_refs does some last-minute formatting of a data frame created by bib2df so that it can be formatted nicely to various outputs.

Usage

prepare_refs(bib2df_refs, toformat = "plain")

Value

print_refs() does some last-minute formatting to a data frame created by bib2df so that rendering in R Markdown is a little easier and less code-heavy.

Arguments

bib2df_refs

a data frame created by bib2df

toformat

what type of output you are ultimately going to want from print_refs() . Default is "plain".

Details

The function is designed to work more generally in the absence of various fields. Assume, for example, that your data frame has no BOOK field. The function uses the one_of() wrapper to work around this. The "warning" returned by the function is more of a message. This function may be expanded as I think of more use cases.

See Also

print_refs() for formatting a .bib references to various outputs.

Examples

Run this code

prepare_refs(stevepubs)

Run the code above in your browser using DataLab