Skip to content

Commit

Permalink
Added CITATION
Browse files Browse the repository at this point in the history
  • Loading branch information
robjhyndman committed Jan 12, 2024
1 parent c13d8cc commit d2c427d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.httr-oauth
.DS_Store
data-raw/202[0-9]*/*
docs/
27 changes: 27 additions & 0 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
year <- sub("-.*", "", meta$Date)
if(!length(year))
year <- substr(Sys.Date(),1,4)
vers <- meta$Version
if(is.null(vers))
vers <- packageVersion("forecast")
vers <- paste("R package version", vers)

citHeader("To cite the weird package in publications, please use:")

bibentry(bibtype = "Manual",
title = '{weird: Functions and Data Sets for "That\'s Weird: Anomaly Detection Using R" by Rob J Hyndman}',
author = c(as.person("Rob J Hyndman")),
year = year,
note = vers,
url = "https://pkg.robjhyndman.com/weird-package/"
)

bibentry(bibtype = "Book",
title = "That's Weird: Anomaly Detection Using {R}",
author = c(as.person("Rob J Hyndman")),
year = year,
note = "In preparation",
publisher = "OTexts",
address = "Melbourne, Australia",
url = "https://OTexts.com/weird/"
)

0 comments on commit d2c427d

Please sign in to comment.