get_bibliography: Get bibliography from an object

View source: R/get_bibliography.R

get_bibliographyR Documentation

Get bibliography from an object

Description

Retrieve the bibliography/references stored in a bioRad object's attributes. Works with vpts, pvol, and other objects that have an attributes$references field.

Usage

get_bibliography(x, format = c("R", "bibtex"))

Arguments

x

A bioRad object (e.g., vpts, pvol).

format

Character string indicating the output format. Either "R" (default) for R bibentry objects, or "bibtex" for BibTeX format.

Value

If format = "R", a list of bibentry objects from the object's attributes$references. If format = "bibtex", a character vector of BibTeX entries. Returns NULL if no references exist or if the object doesn't have the expected structure.

Examples

# Get bibliography as R objects (default) from a vpts object
bibliography <- get_bibliography(example_vpts)

# Get bibliography as BibTeX from a vpts object
bibtex_bibliography <- get_bibliography(example_vpts, format = "bibtex")

bioRad documentation built on Dec. 5, 2026, 1:07 a.m.