knitcitations: Citations for knitr markdown files
RMarkdownでの文献管理
- CRAN: http://cran.r-project.org/web/packages/knitcitations/index.html
- Vignettes
- GitHub: https://github.com/cboettig/knitcitations
- Vignettes
> library(knitcitations)
バージョン: 1.0.7
関数名 | 概略 |
---|---|
bib_metadata |
get the full metadata for a citation / bibliographic object |
bibliography |
Generate the bibliography |
cite_options |
Toggles for various citation options |
citep |
citep - inline parenthetical citation |
citet |
citet - inline parenthetical citation |
cleanbib |
cleanbib |
greycite |
greycite citation method |
read.bibtex |
read.bibtex |
record_as_cited |
record as cited |
write.bibtex |
write a bibtex file |
cite_options
Arguments
- citation_format
- style
- hyperlink
- super
- max.names
- longnamesfirst
- check.entries
- ...
citep, citet
文書中に引用文献をつける。DOIを与えることも可能。
括弧で囲う場合はcitep
。utils::citation
を使用
> citep(citation("RCurl"))
[1] "(Temple Lang and team, 2015)"
> citet(citation("RCurl"))
[1] "Temple Lang and team (2015)"
> citet("10.1890/11-0011.1")
[1] "Abrams, Ruokolainen, Shuter, and McCann (2012)"
cleanbib
現在のbib情報を削除する
> cleanbib()
read.bibtex
> read.bibtex(file = "../inst/references.bib",
+ .Encoding = "UTF-8",
+ check = FALSE)
[1] C. Boettiger. _knitcitations: Citations for Knitr Markdown
Files_. R package version 1.0.6. 2015. <URL:
http://CRAN.R-project.org/package=knitcitations>.
[2] D. T. Lang. _RCurl: General network (HTTP/FTP/...) client
interface for R_. R package version 1.95-4.6. 2015. <URL:
http://CRAN.R-project.org/package=RCurl>.
[3] Y. Xie. _Dynamic Documents with R and knitr_. ISBN
978-1482203530. Boca Raton, Florida: Chapman and Hall/CRC, 2013.
<URL: http://yihui.name/knitr/>.
[4] Y. Xie. "knitr: A Comprehensive Tool for Reproducible Research
in R". In: _Implementing Reproducible Computational Research_. Ed.
by V. Stodden, F. Leisch and R. D. Peng. ISBN 978-1466561595.
Chapman and Hall/CRC, 2014. <URL:
http://www.crcpress.com/product/isbn/9781466561595>.
[5] Y. Xie. _knitr: A General-Purpose Package for Dynamic Report
Generation in R_. R package version 1.10.5. 2015. <URL:
http://yihui.name/knitr/>.
write.bibtex
bibtexファイルの作成
> write.bibtex(c(citation("knitr"),
+ citation("knitcitations"),
+ citation("RCurl")),
+ file = "../inst/references.bib")