cleanRefs: Clean references.

Description Usage Arguments Details See Also Examples

View source: R/cleanRefs.R

Description

Remove LaTeX tags and shorten authors names in YAML references

Usage

1

Arguments

files

Filename(s) of references in the YAML format to be cleaned

Details

The conversion from BibTeX to YAML (using pandoc-citeproc called by getRefs or bib2yaml) removes a lot of LaTeX tags. But this process is not perfect. The function cleanRefs cleans the remaining special characters ('exotic' accents and other LaTeX). Moreover information in BibTeX is not uniform for authors, so this function also clean author names (detection of family names with particle, removal of uppercase except for each first letter of family and given names, and shorten given name). Note that journal, booktitle and article/chapter title are also not uniform but this information comes from Scopus that is more standardize than Crossref. Finally we have to mention that cleaned YAML files erase their previous versions (this function does not return any object). If errors occur and if you still have BibTeX, you can use the function bib2yaml to regenerate the erased YAML file.

See Also

getRefs, bib2yaml

Examples

1
# Coming soon...

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