Bibtex Parser
Overview
Utility to parse a bibtex file.
- bibtex now requires R 3.6.0 or later, which the parser already relied on, and no longer imports backports.
read.bib()now reads BibLaTeX dates such as2020,2020-05,2020/2021,1723~and-0044, taking the year from each, and gives the right year for non-ISO dates such as17-05-2020(@HughParsonage, #15; @Fifis, #56).read.bib()now fills injournalfrom a BibLaTeXjournaltitlefield, so@Articleentries that only havejournaltitleare kept (@Fifis, #57).read.bib()is more robust (@bastistician, #64):- Brace-less
@Commentlines, such as@Comment my comment, are skipped and the rest of the file is read. - A
%comment on the same line as the closing brace of an entry or a@Stringis ignored and the rest of the file is read.
Show all changes in 0.5.3Hide the rest of the changes in 0.5.3
- A line in a braced field value that starts with
@but does not open an entry, such as a wrapped e-mail address, stays part of that field. - An empty file, or one holding only comments, reads as an empty result.
- Warnings raised while parsing now reach the caller, and input the parser cannot read, such as an unreadable file, an entry or
@Stringwith no closing brace, or one delimited by parentheses, is reported as an error. - Errors include the parser's message when it has one, e.g.
Invalid bib file: unable to open file to read. do_read_bib()gets the same improvements and returns an empty list for an empty or comment-only file.- Snapshot tests now record the parsed entries rather than R's printed output, so they pass on R 4.5.3 and later, including R-devel.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 4 (1 internal)includes a package overview page
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 50% with a bibliography file
Downloads
Repository
- PRs merged (all time)
- 78%
- Median days to close, 50 most recently updated closed issues
- 378
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
9 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/ropensci/bibtex on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 3 practices
Dependencies
Installing bibtex adds no packages beyond those that come with R.
Show all 24 packagesHide all 24 packages
Code & Tests
People & History
Previously maintained by Kurt Hornik (0.1-0 to 0.3-6).
Show 3 peopleHide 3 people
Pick two releases to compare their code metrics.
- 0.5.3Latest
- RR 4.6.0 released · 2026-04-24
- 0.5.22026-02-03 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.5.12023-01-26 · diff ↗
- unarchivedReturned to CRAN2022-09-26
- 0.5.02022-09-26 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- orphanedOrphaned by its maintainer2020-09-19check problems were not corrected in time
- 0.4.2.32020-09-19 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.4.2.22020-01-02 · diff ↗
- 0.4.2.12019-12-20 · diff ↗
Show 26 earlier eventsHide 26 earlier events
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 0.4.2
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 0.4.02014-12-31 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 0.3-62013-07-29 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 0.3-52013-02-15 · diff ↗
- 0.3-42012-12-22 · diff ↗
- 0.3-32012-10-14 · diff ↗
- 0.3-2
- RR 2.15.0 released · 2012-03-30
- 0.3-02011-11-17 · diff ↗
- RR 2.14.0 released · 2011-10-31
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- 0.2-12010-07-24 · diff ↗
- 0.2-02010-06-19 · diff ↗
- RR 2.11.0 released · 2010-04-22
- 0.1-32009-12-14 · diff ↗
- 0.1-22009-12-13 · diff ↗
- 0.1-02009-12-11
- RR 2.10.0 released · 2009-10-26
Package metadata
- First published
- 2009-12-11
- Total releases
- 20 / 17 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.6.0
- Download size
- 90 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("bibtex")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.