Skip to content

Commit 42adce6

Browse files
authored
Merge pull request #86 from vsimko/master
CITATION uses fields from DESCRIPTION file
2 parents c36ae27 + d53b139 commit 42adce6

3 files changed

Lines changed: 28 additions & 12 deletions

File tree

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
language: r
22
# see also https://docs.travis-ci.com/user/languages/r
33

4+
# see also https://docs.travis-ci.com/user/multi-os/
5+
os:
6+
- linux
7+
- osx
8+
49
# Using the package cache to store R package dependencies can significantly
510
# speed up build times and is recommended for most builds.
611
cache:

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ This package is licensed under GPL, and available on CRAN:
1313
<http://cran.r-project.org/package=corrplot>.
1414

1515
## How to cite
16-
To cite corrplot properly, call the R built-in command `citation("corrplot")` as follows:
16+
The R core development team and the very active community of package authors
17+
have invested a lot of time and effort in creating R as it is today. Please give
18+
credit where credit is due and cite R and R packages when you use them for data
19+
analysis. To cite `corrplot` properly, call the R built-in command
20+
`citation("corrplot")` as follows:
1721
```r
1822
library(corrplot)
1923
citation("corrplot")

inst/CITATION

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
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+
18
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,
714

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),
1316

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

Comments
 (0)