Writes the references a report cites as CSL-JSON, which pandoc, Quarto and
reference managers read directly. It holds the instrument's own
references, the method references of any analysis results given, and any
further references a host supplies, each once. render_report() uses this
for its References section, and a host that builds its own documents can
use the same file.
Arguments
- instrument
An
sframeobject, orNULL.- results
Optional results from
run_analysis_plan(), whose methods' references are included.- extra
Optional further
sf_referenceobjects, for example the references a host keeps for the write-up.- file
Path to write. When
NULL, the CSL-JSON is returned as a string.
See also
Other References functions:
read_bibtex(),
sframe_add_references(),
sframe_get_references(),
sframe_reference()
Examples
instr <- sframe_demo("two_group")$instrument
cat(substr(sframe_bibliography(instr), 1, 200))