Rdpack (version 0.4-20)

get_bibentries: Get all references from a Bibtex file

Description

Get all references from a Bibtex file.

Usage

get_bibentries(..., package = NULL, bibfile = "REFERENCES.bib")

Arguments

...
arguments to be passed on to the file getting functions, character strings, see `Details'.
package
name of a package, a character string or NULL.
bibfile
name of a Bibtex file, a character string.

Value

a bibentry object

Details

This function parses the specified file using read.bib from package "bibtex" and sets its names attribute to the keys of the bib elements.

bibfile should normally be the base name of the Bibtex file. Calling get_bibentries without any ... arguments results in looking for the Bibtex file in the current directory if package is NULL or missing, and in the installation directory of the specified package, otherwise.

Argument "..." may be used to specify directories. If package is missing or NULL, the complete path is obtained with file.path(..., bibfile). Otherwise package must be a package name and the file is taken from the installation directory of the package. Again, argument "..." can specify subdirectory as in system.file.