From d6b44a552fadf2ceb0772c2bce8d85fc7f1150bc Mon Sep 17 00:00:00 2001 From: aleksanderbl29 <73799306+aleksanderbl29@users.noreply.github.com> Date: Sun, 24 Nov 2024 14:47:59 +0100 Subject: [PATCH 1/3] Add family and ctb --- DESCRIPTION | 8 ++++++-- R/get_data.R | 2 ++ R/get_map_data.R | 1 + inst/WORDLIST | 1 + man/get_data.Rd | 5 +++++ man/get_map_data.Rd | 5 +++++ 6 files changed, 20 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index de59642..cd37a54 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,10 +2,14 @@ Package: dawaR Title: An API Wrapper for 'DAWA' - 'The Danish Address Web API' Date: 2024-11-23 Version: 0.2.6 -Authors@R: +Authors@R: c( person("Aleksander", "Bang-Larsen", , "contact@aleksanderbl.dk", role = c("aut", "cre", "cph"), - comment = c(ORCID = "0009-0007-7984-4650")) + comment = c(ORCID = "0009-0007-7984-4650"))), + person("Agency of Climate Data", role = c("ctb"), + comment = c(NOTE = "The Danish Agency of Climate Data provides this + API for the public and have not actively contributed to the + development nor distribution in this package."))) Description: Functions for interacting with all sections of the official 'Danish Address Web API' (also known as 'DAWA') . The development of this package is diff --git a/R/get_data.R b/R/get_data.R index a6438f9..2b1fded 100644 --- a/R/get_data.R +++ b/R/get_data.R @@ -7,7 +7,9 @@ #' #' @return Returns either a dataframe with all the data for the specified #' section or a list with the same information. +#' #' @export +#' @family Data functions #' #' @examples #' x <- get_data("regioner") diff --git a/R/get_map_data.R b/R/get_map_data.R index a110456..fa2ab69 100644 --- a/R/get_map_data.R +++ b/R/get_map_data.R @@ -17,6 +17,7 @@ #' @inheritParams dawa #' #' @export +#' @family Data functions #' #' @examples #' \dontrun{ diff --git a/inst/WORDLIST b/inst/WORDLIST index 1bd94c9..5d3af1d 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -40,6 +40,7 @@ cran cre CreativeWork crosstab +ctb daee Danmarks Datafordeleren diff --git a/man/get_data.Rd b/man/get_data.Rd index 3b05969..a0a8996 100644 --- a/man/get_data.Rd +++ b/man/get_data.Rd @@ -26,3 +26,8 @@ Get data from section x <- get_data("regioner") head(x) } +\seealso{ +Other Data functions: +\code{\link{get_map_data}()} +} +\concept{Data functions} diff --git a/man/get_map_data.Rd b/man/get_map_data.Rd index 40f6720..7e73ff0 100644 --- a/man/get_map_data.Rd +++ b/man/get_map_data.Rd @@ -33,3 +33,8 @@ ggplot2::ggplot(x) + ggplot2::geom_sf() } } +\seealso{ +Other Data functions: +\code{\link{get_data}()} +} +\concept{Data functions} From 1fe7095a93fe770cc1cea9b5d0f49f2124cd7aef Mon Sep 17 00:00:00 2001 From: aleksanderbl29 <73799306+aleksanderbl29@users.noreply.github.com> Date: Sun, 24 Nov 2024 14:49:53 +0100 Subject: [PATCH 2/3] Fix parenthesis error --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index cd37a54..017ccd2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -5,7 +5,7 @@ Version: 0.2.6 Authors@R: c( person("Aleksander", "Bang-Larsen", , "contact@aleksanderbl.dk", role = c("aut", "cre", "cph"), - comment = c(ORCID = "0009-0007-7984-4650"))), + comment = c(ORCID = "0009-0007-7984-4650")), person("Agency of Climate Data", role = c("ctb"), comment = c(NOTE = "The Danish Agency of Climate Data provides this API for the public and have not actively contributed to the From 9306d7277f992d012b33cb50def58d91546065ee Mon Sep 17 00:00:00 2001 From: aleksanderbl29 <73799306+aleksanderbl29@users.noreply.github.com> Date: Sun, 24 Nov 2024 15:01:55 +0100 Subject: [PATCH 3/3] Add english and danish entries --- inst/CITATION | 11 ++++++++++- inst/WORDLIST | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/inst/CITATION b/inst/CITATION index 52754b6..a870b1c 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -6,7 +6,16 @@ bibentry( bibentry( bibtype = "misc", key = "apidawa", - title = "{DAWA}: {Danmarks Adressers Web API} at {Dataforsyningen} - Through {dawaR}", + title = "{DAWA}: {Denmark's Address Web API} at {The datadistribution} - Through {dawaR}", + author = person("Agency of Climate Data}"), + year = "2024", + url = "https://dawadocs.dataforsyningen.dk/dok/guides" +) + +bibentry( + bibtype = "misc", + key = "apidawa", + title = "{DAWA}: {Danmarks Adressers Web API} hos {Dataforsyningen} - Tilgået med {dawaR}", author = "Klimadatastyrelsen", year = "2024", url = "https://dawadocs.dataforsyningen.dk/dok/guides" diff --git a/inst/WORDLIST b/inst/WORDLIST index 5d3af1d..9b3c3de 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -43,6 +43,7 @@ crosstab ctb daee Danmarks +datadistribution Datafordeleren Dataforsyningen dataforsyningen @@ -159,6 +160,7 @@ SystemRequirements Sї testthat tidyRSS +Tilgået tzones unlist uS