Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bibtex

Bibtex Utilities


Description

Utility functions to work with BiBTeX files.

Usage

packageReferenceFile(PACKAGE = NULL, check = FALSE)

package_bibliography(PACKAGE = NULL, action = c("path", "copy", "load"))

Arguments

PACKAGE

package name. If NULL, then the name of the calling package is used.

check

logical that indicates if the result should be an empty string if the bibliography file (or package) does not exist.

action

single character string that specifies the action to be performed:

  • 'path': return the path to the bibliography file. It returns an empty character string if the file does not exist.

  • 'copy': copy the bibliography file to the current directory, overwriting any existing REFERENCES.bib file.

  • 'load': load the bibliography file and return a list of utils::bibentry objects. It returns NULL if the file does not exist.

Functions

  • packageReferenceFile: returns the path to a package REFERENCES.bib file.

  • package_bibliography: returns the bibliography associated with a package. This can

Examples

packageReferenceFile('pkgmaker')
packageReferenceFile('pkgmaker', check = TRUE)

pkgmaker

Development Utilities for R Packages

v0.32.2
GPL (>= 2)
Authors
Renaud Gaujoux [aut, cre]
Initial release
2020-10-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.