Learn R Programming

knitcitations (version 0.4-7)

authoryear_p: format the author and year

Description

This is just a utility function that calls format_authoryear_p, which does the actual formating at the time the citation is added to the data. This provides a separate API for the function that simply returns the formatted text, from the function that does the formatting (which may change, or may have more flavors, etc).

Usage

authoryear_p(entry,
    format_inline_fn = format_authoryear_p)

Arguments

entry
a bibentry
format_inline_fn
the function that actually creates the inline format for a single entry

Value

  • the author-year citation