引用R包中的文章,使用roxygen2和BibTeX? [英] Citing articles in R package using roxygen2 and BibTeX?

查看:847
本文介绍了引用R包中的文章,使用roxygen2和BibTeX?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用roxygen2作为记录我的R包的工具,我发现在roxygen2中有一个@references标签,但似乎只接受自由的表单文本。我找到一些关于roxygen的演示文稿,它有标签@bibliograph和@cite,但是我正确的是,在roxygen2中没有这样的东西?



我应该以某种方式取得参考从bibtex文件中,直接在@references标签之后用适当的格式手动写入它们,还是有更聪明的方法呢?我有大约七个不同的文章,我需要引用多个功能/ rd文件。

解决方案

似乎有一个品牌新推出的请求提供了此功能:
https://github.com/klutometis/roxygen/pull/90



所以希望我们很快就会有这个功能。


I'm using roxygen2 as a tool for documenting my R package, and I found that there is a @references tag in roxygen2, but that seems to only accept free form text. I found some presentation about roxygen which has tags @bibliograph and @cite, but am I correct that there is no such thing in roxygen2?

Should I then somehow take the references out of the bibtex-file and write them manually with appropriate formatting directly after the @references tag or is there some more clever way of doing this? I have about seven different articles I need to cite, over multiple functions/rd-files.

解决方案

Seems that there is a brand new pull request contributing this feature: https://github.com/klutometis/roxygen/pull/90

So hopefully we'll soon have this functionality.

这篇关于引用R包中的文章,使用roxygen2和BibTeX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆