Skip to content

Commit

Permalink
Update devel after initial cran release (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksanderbl29 authored Oct 31, 2024
2 parents a2fe063 + bce6f6e commit 6936441
Show file tree
Hide file tree
Showing 24 changed files with 2,006 additions and 2,280 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ repos:
\.github/workflows/.*|
data/.*|
renv/.*|
CRAN-SUBMISSION|
)$
- id: lintr
- id: readme-rmd-rendered
Expand Down
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 0.2.3
Date: 2024-10-28 12:44:43 UTC
SHA: 5a8f038bf1e2d06a9176448f50ae4ef7bc40076e
13 changes: 7 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
Package: dawaR
Title: An API Wrapper Package for DAWA - The Danish Address Web API
Date: 2024-10-23
Title: An API Wrapper for 'DAWA' - 'The Danish Address Web API'
Date: 2024-10-28
Version: 0.2.3
Authors@R:
person("Aleksander", "Bang-Larsen", , "[email protected]",
role = c("aut", "cre", "cph"),
comment = c(ORCID = "0009-0007-7984-4650"))
Description: Package providing functions to interact with all sections of
the official Danish Address Web API (also known as DAWA). The development
of this package is completely independent from the
[government entity that maintains the API](sdfi.dk).
Description: Functions for interacting with all sections of
the official 'Danish Address Web API' (also known as 'DAWA')
<https://api.dataforsyningen.dk>. The development of this package is
completely independent from the government agency, Klimadatastyrelsen,
who maintains the API.
License: GPL (>= 3)
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ export(get_map_data)
export(reverse)
export(status_check)
importFrom(rlang,list2)
importFrom(rlang,splice)
importFrom(tidyRSS,tidyfeed)
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# dawaR 0.2.3
# dawaR 0.2.3 (2024-10-23)

* Initial CRAN submission.
* Add package startup message
Expand Down
6 changes: 4 additions & 2 deletions R/get_map_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
#' @export
#'
#' @examples
#' \dontrun{
#' x <- get_map_data("regioner")
#' ggplot2::ggplot(x) +
#' ggplot2::geom_sf()
#' }
get_map_data <- function(type, cache = TRUE, ...) {
params <- rlang::list2(...)

Expand All @@ -37,12 +39,12 @@ get_map_data <- function(type, cache = TRUE, ...) {
}
}

#' @importFrom rlang splice list2
#' @importFrom rlang list2
get_map_data_w_cache <- memoise::memoise(function(type, params = list()) {
get_map_data_nocache(type = type, cache = TRUE, params = params)
})

#' @importFrom rlang splice list2
#' @importFrom rlang list2
get_map_data_nocache <- function(type, cache = FALSE, params = list()) {
if (!type %in% available_sections(format = "geojson", verbose = FALSE)) {
cli::cli_abort("You have provided type {.var {type}}
Expand Down
6 changes: 3 additions & 3 deletions R/status_check.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#' Check that all DAWA services are operational
#'
#' @description This function fetches the status of all available SDFI services.
#' This package depends on at least one of these. It checks [this status
#' url](https://erdataforsyningennede.site24x7statusiq.com/). The status can
#' also be followed on the official [X-page](https://x.com/DriftDataforsyn).
#' This package depends on at least one of these. It checks the official
#' status page. The status can also be followed on their official X-page
#' `@DriftDataforsyn`.
#'
#'
#' @param return_df This option makes the function return a data.frame object
Expand Down
6 changes: 0 additions & 6 deletions R/utils.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# onAttach ----
.onAttach <- function(...) {
get_status_message() |>
packageStartupMessage()
}

# nolint start
get_status_message <- function() {
httr2::request("https://raw.githubusercontent.com/aleksanderbl29/dawaR/refs/heads/main/status-message") |>
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ If you install the package in an environment configured with [`renv`](https://rs

## Usage

Be sure to see the [getting started](articles/dawaR.html) and the [guide on how to make maps with {dawaR}](articles//printing_maps.html).
Be sure to see the [getting started](https://dawar.aleksanderbl.dk/articles/dawaR.html) and the [guide on how to make maps with {dawaR}](https://dawar.aleksanderbl.dk/articles/printing_maps.html).

## DAWA *will* be phased out

Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ as intended.

## Usage

Be sure to see the [getting started](articles/dawaR.html) and the [guide
on how to make maps with {dawaR}](articles//printing_maps.html).
Be sure to see the [getting
started](https://dawar.aleksanderbl.dk/articles/dawaR.html) and the
[guide on how to make maps with
{dawaR}](https://dawar.aleksanderbl.dk/articles/printing_maps.html).

## DAWA *will* be phased out

Expand Down
252 changes: 0 additions & 252 deletions codemeta.json

This file was deleted.

6 changes: 6 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
0 errors | 0 warnings | 1 note

* This is a new release.
* Fixed test that fails sporadically. - Resubmission

Addressed comments from Konstanze Lauseker on 28/10/24.

* Added single quotes around API-names in DESCRIPTION title and description
* Added web reference for the API.
Loading

0 comments on commit 6936441

Please sign in to comment.