bib2yaml: Convert a BibTeX to a YAML file

Description Usage Arguments Details Value See Also Examples

View source: R/bib2yaml.R

Description

This function converts one (or many) BibTeX into YAML format using the software pandoc and pandoc-citeproc (called with the R functionsystem()).

Usage

1
bib2yaml(data = NULL, file = NULL, path = ".", write = TRUE)

Arguments

data

A vector of collapsed BibTeX [strings] (i.e. each element of the vector/list is one single BibTeX)

file

A vector of BibTeX files to be converted

path

The path to the directory where YAML files will be written (ignored if write = FALSE)

write

A boolean indicating if YAML will be written

Details

User has to specify one of data or file otherwise the function will return an error.

Value

A list of YAML files (i.e. a tagged list). If write = TRUE YAML files are also written in the directory specified by the argument path.

See Also

getRefs

Examples

1
# Coming soon...

inSileco/refR documentation built on May 28, 2019, 9:55 p.m.