read_bibtex: Function to load a 'BibTeX' file to a data frame.

View source: R/read_bibtex.R

read_bibtexR Documentation

Function to load a BibTeX file to a data frame.

Description

read_bibtex_aux reads .aux files created by BibTeX and BibLaTeX.

Usage

read_bibtex(file, skip = 0, article = NA)

read_bibtex_aux(file)

Arguments

file

File name of a BibTeX file. URLs work too.

skip

How many lines to skip before starting reading? This is useful if file contains a non-commented preamble.

article

A vector of BibTeX keys to filter file to. If not used, all entries will be returned.

Value

Tibble.

Character vector.

Author(s)

Stuart K. Grange

Examples


# A file from the web
url <- "http://www.andy-roberts.net/res/writing/latex/sample.bib"
data_bib <- read_bibtex(url)


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.