|
| 1 | +PKG <- "corrplot" |
| 2 | +VERSION <- packageVersion(PKG) |
| 3 | +TITLE <- packageDescription(PKG, fields = "Title") |
| 4 | +AUTHORS <- packageDescription(PKG, fields = "Author") |
| 5 | +URL <- packageDescription(PKG, fields = "URL") |
| 6 | +YEAR <- strftime(packageDescription(PKG, fields = "Date"), "%Y") |
| 7 | + |
1 | 8 | bibentry("Manual", |
2 | | - title="R package 'corrplot': Visualization of a correlation matrix", |
3 | | - author="Taiyun Wei and Viliam Simko", |
4 | | - year="2017", |
5 | | - note="(Version 0.82)", |
6 | | - url="https://github.com/taiyun/corrplot", |
| 9 | + title = sprintf("R package \"%s\": %s", PKG, TITLE), |
| 10 | + author = AUTHORS, |
| 11 | + year = YEAR, |
| 12 | + note = sprintf("(Version %s)", VERSION), |
| 13 | + url = URL, |
7 | 14 |
|
8 | | - textVersion = |
9 | | - paste("T. Wei and V. Simko (2016). ", |
10 | | - "R package 'corrplot': Visualization of a correlation matrix (Version 0.82). ", |
11 | | - "Available from https://github.com/taiyun/corrplot", |
12 | | - sep=""), |
| 15 | + mheader = sprintf("To cite %s in publications use:", PKG), |
13 | 16 |
|
14 | | - mheader = "To cite corrplot in publications use:") |
| 17 | + textVersion = sprintf( |
| 18 | + "%s (%s). R package \"%s\": %s (Version %s). Available from %s", |
| 19 | + AUTHORS, YEAR, PKG, TITLE, VERSION, URL |
| 20 | + ) |
| 21 | +) |
0 commit comments