From f4f4d1b1bb8467a71a3d6c5b702388a5367cddb0 Mon Sep 17 00:00:00 2001 From: Eva Rifa Date: Thu, 21 Dec 2023 17:36:47 +0100 Subject: [PATCH] Add CITATION file --- inst/CITATION | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 inst/CITATION diff --git a/inst/CITATION b/inst/CITATION new file mode 100644 index 0000000..af27d37 --- /dev/null +++ b/inst/CITATION @@ -0,0 +1,24 @@ +citHeader("To cite package 'CSTools' in publications use:") + +yr <- sub('.*(2[[:digit:]]{3})-.*', '\\1', meta$Date, perl = TRUE) +if (length(yr) == 0) yr <- format(Sys.Date(), '%Y') + +bibentry( + bibtype = 'Manual', + title = paste0(meta$Package, ': ', meta$Title), + author = Filter(function(p) 'aut' %in% p$role, as.person(meta$Author)), + year = yr, + note = paste('R package version', meta$Version), + url = meta$URL +) + +bibentry( + bibtype = "Article", + author = c(person("Núria", "Pérez-Zanón", email = "nuria.perez@bsc.es"), person("", "et al.")), + title = "CSIndicators: Get tailored climate indicators for applications in your sector", + doi = "10.1016/j.cliser.2023.100393", + url = "https://www.sciencedirect.com/science/article/pii/S2405880723000547", + journal = "Climate Services", + publisher = "Elsevier", + year = "2023" +) -- GitLab