From 9c68e7011dd9ebf368238ac0ccf0e6afb9caf3e7 Mon Sep 17 00:00:00 2001 From: "Eric R. Scott" Date: Thu, 16 Feb 2023 15:32:45 -0500 Subject: [PATCH 1/7] better title --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index c1647c2..196e286 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: azmetr -Title: Access the AZMet API +Title: Access Arizona weather data from the AZMet API Version: 0.1.0.9000 Authors@R: person("Eric", "Scott", , "ericrscott@arizona.edu", role = c("aut", "cre"), From ec4a7cef466a2bc2ff29b06ebd6f848ce41d03f3 Mon Sep 17 00:00:00 2001 From: "Eric R. Scott" Date: Thu, 16 Feb 2023 15:33:00 -0500 Subject: [PATCH 2/7] add citation template --- inst/CITATION | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 inst/CITATION diff --git a/inst/CITATION b/inst/CITATION new file mode 100644 index 0000000..cc3369a --- /dev/null +++ b/inst/CITATION @@ -0,0 +1,17 @@ +citHeader("To cite azmetr in publications use:") + +citEntry( + entry = "Article", + title = "Access Arizona weather data from the AZMet API", + author = "Eric R. Scott", + journal = , + year = "2023", + volume = , + number = , + pages = , + url = "https://github.com/cct-datascience/azmetr", + textVersion = paste( + "Scott, Eric R." + + ) +) From 5f74f9d582b907e976b460440e39c718b8e12bad Mon Sep 17 00:00:00 2001 From: "Eric R. Scott" Date: Thu, 23 Feb 2023 09:56:55 -0500 Subject: [PATCH 3/7] add citation --- .Rbuildignore | 1 + CITATION.cff | 27 +++++++++++++++++++++++++++ inst/CITATION | 19 +++++++++---------- 3 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 CITATION.cff diff --git a/.Rbuildignore b/.Rbuildignore index 07a4c81..fb06a2f 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -7,3 +7,4 @@ ^codecov\.yml$ ^doc$ ^Meta$ +^CITATION\.cff$ diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 0000000..b617860 --- /dev/null +++ b/CITATION.cff @@ -0,0 +1,27 @@ +# ----------------------------------------------------------- +# CITATION file created with {cffr} R package, v0.4.1 +# See also: https://docs.ropensci.org/cffr/ +# ----------------------------------------------------------- + +cff-version: 1.2.0 +message: 'To cite package "azmetr" in publications use:' +type: software +license: MIT +title: 'azmetr: Access Arizona weather data from the AZMet API' +version: 0.1.0.9000 +year: 2023 +abstract: Provides R functions to access the Arizona Meterological Network (AZMet) + API. Functions are more than just "thin wrappers" and do some parsing of input parameters + and wrangling of output data. +authors: +- family-names: Scott + given-names: Eric R. + email: ericrscott@arizona.edu + orcid: https://orcid.org/0000-0002-7430-7879 +repository-code: https://github.com/cct-datascience/azmetr +url: https://github.com/cct-datascience/azmetr +contact: +- family-names: Scott + given-names: Eric R. + email: ericrscott@arizona.edu + orcid: https://orcid.org/0000-0002-7430-7879 diff --git a/inst/CITATION b/inst/CITATION index cc3369a..12ca0a1 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -1,17 +1,16 @@ citHeader("To cite azmetr in publications use:") citEntry( - entry = "Article", - title = "Access Arizona weather data from the AZMet API", - author = "Eric R. Scott", - journal = , + entry = "Misc", + title = "azmetr: Access Arizona weather data from the AZMet API", + author = c(person(given = c("Eric", "R."), + family = "Scott", + role = c("aut", "cre"), + email = "scottericr@gmail.com")), year = "2023", - volume = , - number = , - pages = , - url = "https://github.com/cct-datascience/azmetr", + version = as.package_version("0.1.0.9000"), + url = "https://github.com/cct-datascience/azmetr", textVersion = paste( - "Scott, Eric R." - + 'Scott ER (2023). “azmetr: Access Arizona weather data from the AZMet API.”' ) ) From fe2b9f0655c134568479605e56e484a3a3a4d800 Mon Sep 17 00:00:00 2001 From: "Eric R. Scott" Date: Thu, 23 Feb 2023 09:57:39 -0500 Subject: [PATCH 4/7] reminder to update citation on release --- R/release_questions.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/release_questions.R b/R/release_questions.R index 9827e41..09f685b 100644 --- a/R/release_questions.R +++ b/R/release_questions.R @@ -1,6 +1,7 @@ release_bullets <- function() { c( "[Pre-compute vignettes](https://ropensci.org/blog/2019/12/08/precompute-vignettes/)", - "Check that only magrittr pipe (`%>%`) and not base pipe (`|>`) is used" + "Check that only magrittr pipe (`%>%`) and not base pipe (`|>`) is used", + "Update CITATION.cff and inst/CITATION" ) } From 6d884bdfe00331e1eaab4d50ccc631002c90877e Mon Sep 17 00:00:00 2001 From: "Eric R. Scott" Date: Fri, 24 Feb 2023 16:33:20 -0500 Subject: [PATCH 5/7] ask to cite data source --- inst/CITATION | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/inst/CITATION b/inst/CITATION index 12ca0a1..6ea78cd 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -1,4 +1,4 @@ -citHeader("To cite azmetr in publications use:") +citHeader("To cite azmetr in publications please cite both the R package and the data source:") citEntry( entry = "Misc", @@ -14,3 +14,13 @@ citEntry( 'Scott ER (2023). “azmetr: Access Arizona weather data from the AZMet API.”' ) ) + +citEntry( + entry = "Misc", + title = "Arizona Meteorological Network (AZMet) Data. Accessed ", + author = "Arizona Meteorological Network", + url = "https://azmet.arizona.edu", + textVersion = "Arizona Meteorological Network, Arizona Meteorological Network (AZMet) Data. Accessed , https://azmet.arizona.edu" +) + + From e0e46ca66c95b70acea763dd9b13038f806d47c9 Mon Sep 17 00:00:00 2001 From: "Eric R. Scott" Date: Fri, 24 Feb 2023 16:33:33 -0500 Subject: [PATCH 6/7] Increment version number to 0.1.1 --- DESCRIPTION | 2 +- NEWS.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index a7dc08f..3725336 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: azmetr Title: Access Arizona weather data from the AZMet API -Version: 0.1.0.9000 +Version: 0.1.1 Authors@R: person("Eric", "Scott", , "ericrscott@arizona.edu", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7430-7879")) diff --git a/NEWS.md b/NEWS.md index 75702fc..481aa86 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# azmetr (development version) +# azmetr 0.1.1 - `azmetr` now uses the `httr2` package instead of `httr` for API requests. This change allowed for easier rate limiting - There is now a rate limit of 4 requests per second to the API. This shouldn't cause noticible slowdowns except when using the `station_id` argument maybe From 9fb3a960ed70da8f6562a325fed0861b6c33d7d9 Mon Sep 17 00:00:00 2001 From: "Eric R. Scott" Date: Fri, 24 Feb 2023 16:34:15 -0500 Subject: [PATCH 7/7] increment version --- CITATION.cff | 2 +- inst/CITATION | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index b617860..74d6c60 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -8,7 +8,7 @@ message: 'To cite package "azmetr" in publications use:' type: software license: MIT title: 'azmetr: Access Arizona weather data from the AZMet API' -version: 0.1.0.9000 +version: 0.1.1 year: 2023 abstract: Provides R functions to access the Arizona Meterological Network (AZMet) API. Functions are more than just "thin wrappers" and do some parsing of input parameters diff --git a/inst/CITATION b/inst/CITATION index 6ea78cd..0f7835f 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -8,7 +8,7 @@ citEntry( role = c("aut", "cre"), email = "scottericr@gmail.com")), year = "2023", - version = as.package_version("0.1.0.9000"), + version = as.package_version("0.1.1"), url = "https://github.com/cct-datascience/azmetr", textVersion = paste( 'Scott ER (2023). “azmetr: Access Arizona weather data from the AZMet API.”'