webchem icon indicating copy to clipboard operation
webchem copied to clipboard

Function to get citations for databases

Open Aariq opened this issue 6 years ago • 1 comments

I imagine in addition to citing webchem, people using this package may also want to (or be technically required to) cite the databases that webchem accesses. It might be a good idea to have a function that returns citations for each database, similar to citation(). Maybe you could use the function prefix to get the citation.

webchem_cite("cs")
#>To cite ChemSpider in publications use:
#>    Ayers, M. (2012), "ChemSpider: The Free Chemical Database", Reference Reviews, Vol. 26 No. 7, pp. 45-46. https://doi.org/10.1108/09504121211271059
#> A BibTex entry for LaTeX users is:
#> <bibtex citation>

Aariq avatar Sep 20 '19 14:09 Aariq

then citation("webchem") could reference this function saying "in addition to citing webchem, cite any relevant databases you've accessed. Get citations using the webchem_cite() function. See ?webchem_cite for more details."

And now that I think of it, it might be more consistent for functions to be like cs_cite, fn_cite, nist_cite etc. These could be wrappers to webchem_cite and all have the same help page.

Aariq avatar Jan 08 '20 18:01 Aariq