【问题标题】:How to export an R citation output into endnote?如何将 R 引文输出导出到尾注?
【发布时间】:2011-03-03 22:01:20
【问题描述】:

如何轻松地将 R 中的引文导入到例如获得的尾注中

citation("ggplot2")

是否有一个好的工作流程,还是我必须手动完成?

【问题讨论】:

    标签: r citations


    【解决方案1】:

    自动化程度取决于 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},
    }
    

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

    【讨论】:

    • 一旦你听从了 Gavin 的建议,你可以试试这个BibTeX to Endnote converter,虽然我没用过,看起来有点老了。
    猜你喜欢
    • 2023-03-22
    • 1970-01-01
    • 2015-08-12
    • 1970-01-01
    • 2011-09-06
    相关资源
    最近更新 更多