我怎样才能轻松将从R获得的引文导入到Endnote中呢?
citation("ggplot2")
有没有一个好的工作流程可以做到这一点,还是我必须手动完成?
?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},
}
你应该能够使用第三方工具导入它。