Skip to content

Commit 2920c82

Browse files
committed
chore: adapt code to upstream changes
1 parent 17a7465 commit 2920c82

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

R/swissmuni.gen.R

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See `README.md#r-markdown-format` for more information on the literate programming approach used applying the R Markdown format.
33

44
# swissmuni: Download Municipality Data from the Swiss Federal Statistical Office's Web Services
5-
# Copyright (C) 2023 Salim Brüggemann
5+
# Copyright (C) 2024 Salim Brüggemann
66
#
77
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free
88
# Software Foundation, either version 3 of the License, or any later version.
@@ -105,14 +105,14 @@ parse_result <- function(response,
105105
#'
106106
#' @includeRmd snippets/fso_vs_historicized_code.Rmd
107107
#'
108-
#' @param start_date `r pkgsnip::param_label("start_date")`
109-
#' @param end_date `r pkgsnip::param_label("end_date")`
108+
#' @param start_date `r pkgsnip::param_lbl("start_date")`
109+
#' @param end_date `r pkgsnip::param_lbl("end_date")`
110110
#' @param historicized_code By default, the [_FSO commune number_](https://de.wikipedia.org/wiki/Gemeindenummer) is returned. Set to `TRUE` in order to get the
111111
#' _historicization number_ instead.
112-
#' @param use_cache `r pkgsnip::param_label("use_cache")`
113-
#' @param max_cache_age `r pkgsnip::param_label("max_cache_age")` Defaults to 1 day (24 hours).
112+
#' @param use_cache `r pkgsnip::param_lbl("use_cache")`
113+
#' @param max_cache_age `r pkgsnip::param_lbl("max_cache_age")` Defaults to 1 day (24 hours).
114114
#'
115-
#' @return `r pkgsnip::return_label("data")`
115+
#' @return `r pkgsnip::return_lbl("tibble")`
116116
#' @export
117117
#'
118118
#' @examples
@@ -303,7 +303,7 @@ classifications <- function(start_date = NULL,
303303
#'
304304
#' A [tibble][tibble::tbl_df] with metadata of all possible `r this_pkg` package configuration options. See [pal::pkg_config_val()] for more information.
305305
#'
306-
#' @format `r pkgsnip::return_label("data_cols", cols = colnames(pkg_config))`
306+
#' @format `r pkgsnip::return_lbl("tibble_cols", cols = colnames(pkg_config))`
307307
#' @export
308308
#'
309309
#' @examples

README.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Note that there's also an official web application [available](https://www.agvch
2727
#| eval: !expr '!isTRUE(getOption("pal.build_readme.is_pkgdown"))'
2828
#| results: asis
2929
#| echo: false
30-
pkgsnip::md_snip(name = "pkgdown_notice") %>%
30+
pkgsnip::md_snip(id = "pkgdown_notice") %>%
3131
paste0("## Documentation\n\n",
3232
"[![Netlify Status](https://api.netlify.com/api/v1/badges/9c255431-9f12-4bd9-a169-a7be1e23b985/deploy-status)]",
3333
"(https://app.netlify.com/sites/swissmuni-rpkg-dev/deploys)\n\n",
@@ -51,7 +51,7 @@ pkgsnip::md_snip(name = "pkgdown_notice") %>%
5151
#| eval: !expr isTRUE(getOption("pal.build_readme.is_pkgdown"))
5252
#| results: asis
5353
#| echo: false
54-
pkgsnip::md_snip(name = "usage_notice") %>%
54+
pkgsnip::md_snip(id = "usage_notice") %>%
5555
paste0("## Usage\n\n", .) %>%
5656
pal::cat_lines()
5757
```

Rmd/swissmuni.Rmd

+6-6
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,14 @@ Possible URL parameters:
216216
#'
217217
#' @includeRmd snippets/fso_vs_historicized_code.Rmd
218218
#'
219-
#' @param start_date `r pkgsnip::param_label("start_date")`
220-
#' @param end_date `r pkgsnip::param_label("end_date")`
219+
#' @param start_date `r pkgsnip::param_lbl("start_date")`
220+
#' @param end_date `r pkgsnip::param_lbl("end_date")`
221221
#' @param historicized_code By default, the [_FSO commune number_](https://de.wikipedia.org/wiki/Gemeindenummer) is returned. Set to `TRUE` in order to get the
222222
#' _historicization number_ instead.
223-
#' @param use_cache `r pkgsnip::param_label("use_cache")`
224-
#' @param max_cache_age `r pkgsnip::param_label("max_cache_age")` Defaults to 1 day (24 hours).
223+
#' @param use_cache `r pkgsnip::param_lbl("use_cache")`
224+
#' @param max_cache_age `r pkgsnip::param_lbl("max_cache_age")` Defaults to 1 day (24 hours).
225225
#'
226-
#' @return `r pkgsnip::return_label("data")`
226+
#' @return `r pkgsnip::return_lbl("tibble")`
227227
#' @export
228228
#'
229229
#' @examples
@@ -473,7 +473,7 @@ classifications <- function(start_date = NULL,
473473
#'
474474
#' A [tibble][tibble::tbl_df] with metadata of all possible `r this_pkg` package configuration options. See [pal::pkg_config_val()] for more information.
475475
#'
476-
#' @format `r pkgsnip::return_label("data_cols", cols = colnames(pkg_config))`
476+
#' @format `r pkgsnip::return_lbl("tibble_cols", cols = colnames(pkg_config))`
477477
#' @export
478478
#'
479479
#' @examples

0 commit comments

Comments
 (0)