はじめに
Rを論文などで使用した場合、引用文献としてRの情報を記載する必要があります。
つい先日にこの引用情報を取得できる関数があると知ったので、備忘録として記事をまとめてみました。
R本体の引用情報の表示
-
citation
関数を実行するだけで、R本体の引用情報を表示することが可能です。 - 単純なテキスト形式に加えて、引用文献の一覧の整形に使われるBibTeX形式も表示されます。
R本体の引用情報
> citation()
To cite R in publications use:
R Core Team (2020). R: A language and environment for statistical
computing. R Foundation for Statistical Computing, Vienna,
Austria. URL https://www.R-project.org/.
A BibTeX entry for LaTeX users is
@Manual{,
title = {R: A Language and Environment for Statistical Computing},
author = {{R Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2020},
url = {https://www.R-project.org/},
}
We have invested a lot of time and effort in creating R, please cite
it when using it for data analysis. See also ‘citation("pkgname")’
for citing R packages.
パッケージの引用情報の表示
- パッケージの引用情報を表示する方法は、
citation
関数の引数としてパッケージ名を渡すだけです。
パッケージの用情報
> citation("MASS")
To cite the MASS package in publications use:
Venables, W. N. & Ripley, B. D. (2002) Modern Applied Statistics
with S. Fourth Edition. Springer, New York. ISBN 0-387-95457-0
A BibTeX entry for LaTeX users is
@Book{,
title = {Modern Applied Statistics with S},
author = {W. N. Venables and B. D. Ripley},
publisher = {Springer},
edition = {Fourth},
address = {New York},
year = {2002},
note = {ISBN 0-387-95457-0},
url = {https://www.stats.ox.ac.uk/pub/MASS4/},
}
補足
- 上記の
citation
関数については、Rを起動した際に表示されるメッセージにも書かれていました。- 散々Rを使ってきたのに、起動時のメッセージは全く見ていなかったので気が付きませんでした...
- @WolfMoon さん、ご指摘ありがとうございました。
R起動時のメッセージの一部分
R は多くの貢献者による共同プロジェクトです。
詳しくは 'contributors()' と入力してください。
また、R や R のパッケージを出版物で引用する際の形式については
'citation()' と入力してください。