如何将R引文输出导出到Endnote?

7
我怎样才能轻松将从R获得的引文导入到Endnote中呢?
citation("ggplot2")

有没有一个好的工作流程可以做到这一点,还是我必须手动完成?

1个回答

10
这取决于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路线走下去,只要您安装允许您将BibTeX导入Endnote的软件即可。
> 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},
}

你应该能够使用第三方工具导入它。


2
一旦你听从了Gavin的建议,你可以尝试使用此BibTeX转Endnote转换器,尽管我没有使用过它,而且它似乎有些过时。 - Laurent

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接