将CITATION文件添加到R包不起作用

时间:2017-10-17 20:48:17

标签: r devtools

我正在写一个R包,并在我的inst目录中创建了一个CITATION文本文档,目前包含以下文本(未经Hadley Wickham's tutorial修改):

citHeader("To cite lubridate in publications use:")

citEntry(entry = "Article",
title        = "Dates and Times Made Easy with {lubridate}",
author       = personList(as.person("Garrett Grolemund"),
                 as.person("Hadley Wickham")),
journal      = "Journal of Statistical Software",
year         = "2011",
volume       = "40",
number       = "3",
pages        = "1--25",
url          = "http://www.jstatsoft.org/v40/i03/",

textVersion  =
paste("Garrett Grolemund, Hadley Wickham (2011).",
    "Dates and Times Made Easy with lubridate.",
    "Journal of Statistical Software, 40(3), 1-25.",
    "URL http://www.jstatsoft.org/v40/i03/.")
)

然后,我使用以下对devtools的调用来更新包文档并在本地加载它:

library(devtools)
document()
build()
load_all()

但是,当我尝试citation("MyNewPackage)时,我只得到默认的R引文。 CITATION文件中没有任何内容出现。

我做错了什么?

0 个答案:

没有答案