Utility functions to work with BiBTeX files.
packageReferenceFile(PACKAGE = NULL, check = FALSE) package_bibliography(PACKAGE = NULL, action = c("path", "copy", "load"))
PACKAGE | package name. If |
---|---|
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:
|
packageReferenceFile
: returns the path to a package REFERENCES.bib file.
package_bibliography
: returns the bibliography associated with a package.
This can
packageReferenceFile('pkgmaker')#> [1] "/tmp/RtmpJs7h8M/temp_libpath75ed85ee0ea45/pkgmaker/REFERENCES.bib"packageReferenceFile('pkgmaker', check = TRUE)#> [1] ""