如何轻松地将引用从R导入到endnote中,例如
citation("ggplot2")
有没有很好的工作流程,还是我必须手动完成?
发布于 2011-03-04 06:29:22
自动化程度将取决于Endnote可以导入的内容。似乎BibTeX导入目前还不可能开箱即用,并且需要一些额外的软件。请参见示例:http://www.lib.uts.edu.au/content/faq/how-can-i-import-bibliography-endnote-bibtex-latex-what-about-converting-other-way-endno
请阅读?bibentry
,特别是参数style
和详细信息部分。查看Endnote是否可以导入其中任何一种格式的数据?我对此表示怀疑,但我从未使用过Endnote。
如果没有,如果您安装了允许您将BibTeX导入Endnote的东西,我们可以使用BibTeX路线。
> utils:::print.bibentry(citation("ggplot2"), style = "Bibtex")
@Book{,
author = {Hadley Wickham},
title = {ggplot2: elegant graphics for data analysis},
publisher = {Springer New York},
year = {2009},
isbn = {978-0-387-98140-6},
url = {http://had.co.nz/ggplot2/book},
}
要将其放入一个文件以便传递给导入实用程序,您可以使用capture.output()
capture.output(utils:::print.bibentry(citation("ggplot2"), style = "Bibtex"),
file = "endnote_import.bib")
它提供了一个包含以下内容的文件:
$ cat endnote_import.bib
@Book{,
author = {Hadley Wickham},
title = {ggplot2: elegant graphics for data analysis},
publisher = {Springer New York},
year = {2009},
isbn = {978-0-387-98140-6},
url = {http://had.co.nz/ggplot2/book},
}
您应该能够使用第三方工具导入。
https://stackoverflow.com/questions/5187146
复制相似问题