| Version: | 0.5.1 | 
| Title: | Bibtex Parser | 
| Description: | Utility to parse a bibtex file. | 
| BugReports: | https://github.com/ropensci/bibtex/issues | 
| URL: | https://github.com/ropensci/bibtex, https://docs.ropensci.org/bibtex/ | 
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] | 
| Depends: | R (≥ 3.0.2) | 
| Imports: | backports (≥ 1.4.0), utils | 
| Suggests: | testthat (≥ 3.0.0) | 
| LazyLoad: | yes | 
| Encoding: | UTF-8 | 
| RoxygenNote: | 7.2.3 | 
| Config/testthat/edition: | 3 | 
| NeedsCompilation: | no | 
| Packaged: | 2023-01-26 07:29:30 UTC; ronin | 
| Author: | Romain Francois  | 
| Maintainer: | James Joseph Balamuta <balamut2@illinois.edu> | 
| Repository: | CRAN | 
| Date/Publication: | 2023-01-26 08:00:02 UTC | 
bibtex: Bibtex Parser
Description
Utility to parse a bibtex file.
Author(s)
Maintainer: James Joseph Balamuta balamut2@illinois.edu (ORCID) [contributor]
Authors:
Romain Francois romain@purrple.cat (ORCID) (principal developer of bibtex R package) [copyright holder]
Diego Hernangómez diego.hernangomezherrero@gmail.com (ORCID)
Other contributors:
Scott Chamberlain myrmecocystus@gmail.com (ORCID) [contributor]
Kurt Hornik Kurt.Hornik@R-project.org (ORCID) [contributor]
Brian Ripley ripley@stats.ox.ac.uk (compilation fixes) [contributor]
Michael Koohafkan michael.koohafkan@gmail.com [contributor]
Mathew W. McLean mathew.w.mclean@gmail.com (ORCID) [contributor]
See Also
Useful links:
Report bugs at https://github.com/ropensci/bibtex/issues
convenience wrapper around .External call
Description
This is a convenience function for packages that do need to call the internal
functionality of read.bib but does different processing. This is
a simple wrapper around the .External code used by read.bib
Usage
do_read_bib(file, encoding = "unknown", srcfile)
Arguments
file | 
 file name  | 
encoding | 
 encoding  | 
srcfile | 
 Deprecated  | 
Details
The parser is greatly inspired from the ‘bibparse’ library.
See Also
bibtex parser
Description
Parser for bibliography databases written in the bib format.
Usage
read.bib(
  file = findBibFile(package),
  package = "bibtex",
  encoding = "unknown",
  header,
  footer
)
Arguments
file | 
 bib file to parse.  By default, the file
‘REFERENCES.bib’ in the root directory of the package given by
the   | 
package | 
 package from which we want to read the bibliography.
Only used if   | 
encoding | 
 encoding  | 
header | 
 DEPRECATED.  | 
footer | 
 DEPRECATED  | 
Value
An object of class "bibentry", similar to those obtained by the
bibentry function.
References
Nelson H. F. Beebe. bibparse 1.04. 1999. http://www.math.utah.edu/~beebe/
Examples
## this package has a REFERENCES.bib file
bib <- read.bib(package = "bibtex")
## bibtex collects bibtex entries for R base packages
base.bib <- read.bib(package = "base")
Generate a Bibtex File from Package Citations
Description
Generates a Bibtex file from a list of packages or all the installed packages. It is useful for adding relevant citations in Sweave documents.
Usage
write.bib(entry, file = "Rpackages.bib", append = FALSE, verbose = TRUE)
Arguments
entry | 
 a   | 
file | 
 output Bibtex file.  | 
append | 
 logical. If   | 
verbose | 
 a logical to toggle verbosity.  | 
Value
the list of Bibtex objects – invisibly.
Author(s)
Renaud Gaujoux, based on the function Rpackages.bib
from Achim Zeileis (see References).
References
[R] Creating bibtex file of all installed packages? Achim Zeileis. R-help mailing list.
Examples
write.bib(c("bibtex", "utils", "tools"), file = "references")
bibs <- read.bib("references.bib")
write.bib(bibs, "references2.bib")
md5 <- tools::md5sum(c("references.bib", "references2.bib"))
md5[1] == md5[2]