gpt4 book ai didi

r - 我可以在一个引文文件中同时添加 R 包的两个引用(一个包,一个文章)吗?

转载 作者:行者123 更新时间:2023-12-02 02:40:50 25 4
gpt4 key购买 nike

在我使用 sethis::use_citation() 为 R 包创建引用文件之后。

模板显示如下

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

citEntry(
entry = "Article",
title = ,
author = ,
journal = ,
year = ,
volume = ,
number = ,
pages = ,
url = ,
textVersion = paste(

)
)

但是,我想引用包本身包相关文章,我应该为包本身创建另一个类似的模板吗?经过?比如

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

citEntry(
entry = "Article",
title = ,
author = ,
journal = ,
year = ,
volume = ,
number = ,
pages = ,
url = ,
textVersion = paste(

)
)

citEntry(
entry = "Manual",
title = ,
author = ,
journal = ,
year = ,
volume = ,
number = ,
pages = ,
url = ,
textVersion = paste(

)
)

此外,实际上我有另一种格式,但不是此 R 自动创建的模板。任何人都知道我是否可以使用它

@Manual{package_name,
title = {{package_name}: },
author = {},
year = {},
note = {},
url = {},
}
@Article{,
author = {},
journal = {},
title = {{package_name}: },
year = {},
volume = {},
number = {}
}

最佳答案

当然。有很多先例。例如 CITATION file for out Rcpp包中有两篇文章和一本书。

你可以在你的系统上做这样的事情来找到你安装的十个最大的文件:

edd@rob:~$ ls -Srl /usr/local/lib/R/site-library/*/CITATION | tail -10
-rw-rw-r-- 1 1000 50 2562 Apr 26 17:50 /usr/local/lib/R/site-library/spam/CITATION
-rw-rw-r-- 1 1000 50 2614 Apr 26 17:55 /usr/local/lib/R/site-library/strucchange/CITATION
-rw-rw-r-- 1 1000 50 2653 Apr 26 17:56 /usr/local/lib/R/site-library/RProtoBuf/CITATION
-rw-rw-r-- 1 1000 50 2878 Apr 26 17:45 /usr/local/lib/R/site-library/stabs/CITATION
-rw-rw-r-- 1 1000 50 2900 Apr 26 17:44 /usr/local/lib/R/site-library/colorspace/CITATION
-rw-rw-r-- 1 1000 50 3471 Apr 26 17:45 /usr/local/lib/R/site-library/statmod/CITATION
-rw-rw-r-- 1 1000 50 3957 Jun 16 08:32 /usr/local/lib/R/site-library/party/CITATION
-rw-rw-r-- 1 1000 50 4352 Aug 6 10:36 /usr/local/lib/R/site-library/mboost/CITATION
-rwxrwxr-x 1 1000 50 4367 Apr 26 17:44 /usr/local/lib/R/site-library/DEoptim/CITATION
-rw-rw-r-- 1 1000 50 4835 Apr 30 21:56 /usr/local/lib/R/site-library/VGAM/CITATION
edd@rob:~$

关于r - 我可以在一个引文文件中同时添加 R 包的两个引用(一个包,一个文章)吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63659756/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com