ropensci / webchem

Chemical Information from the Web
https://docs.ropensci.org/webchem
Other
161 stars 41 forks source link

Function to get citations for databases #183

Open Aariq opened 5 years ago

Aariq commented 5 years ago

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 commented 4 years ago

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.