prepare_refs: Prepare 'bib2df' Data Frame for Formatting to Various Outputs

View source: R/prepare_refs.R

prepare_refsR Documentation

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")

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.

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.

See Also

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

Examples


prepare_refs(stevepubs)

stevemisc documentation built on Nov. 6, 2023, 9:06 a.m.