Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update devel after initial cran release #80

Merged
merged 31 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f335771
Minor fixes (#35)
pr-scheduler[bot] Sep 24, 2024
eb5c24d
Specify commit messages (#32) (#36)
aleksanderbl29 Sep 24, 2024
98214b2
Version 0.2.1 (#46)
aleksanderbl29 Oct 7, 2024
66ce8d2
Update branch (#54)
aleksanderbl29 Oct 7, 2024
07e1346
Update branch (#54) (#55)
aleksanderbl29 Oct 7, 2024
fa377bd
Update snapshots and fix broken test when removed sections
aleksanderbl29 Oct 7, 2024
e67059e
Merge branch 'v0.2.0' into v0.2.1
aleksanderbl29 Oct 7, 2024
cc40067
Update lint.yaml
aleksanderbl29 Oct 20, 2024
f4e15d1
Update lint.yaml (#64)
aleksanderbl29 Oct 20, 2024
194c850
Update snapshots pr 20 oct 2024 (#67)
aleksanderbl29 Oct 20, 2024
ee62302
Add status message for testing
aleksanderbl29 Oct 22, 2024
39009d5
Ignore status message when building
aleksanderbl29 Oct 22, 2024
7c02757
Add status message for testing (#70)
aleksanderbl29 Oct 22, 2024
88916fd
Official release of v0.2.0 - Caching for `get_map_data()` (#34)
aleksanderbl29 Oct 23, 2024
6eca408
Official release of v0.2.1 - More elaborate `{cli}` messaging in `get…
aleksanderbl29 Oct 23, 2024
d8ef458
Official release of v0.2.2 - Proper section checking and more options…
aleksanderbl29 Oct 23, 2024
a8242cf
Release of v0.2.3 (#72)
aleksanderbl29 Oct 23, 2024
b7a567c
V0.2.3 (#73)
aleksanderbl29 Oct 23, 2024
8c6692e
Cleanpu
aleksanderbl29 Oct 23, 2024
0b62082
remove splice
aleksanderbl29 Oct 23, 2024
821c748
Add cran comments
aleksanderbl29 Oct 23, 2024
e1dabf6
Empty message
aleksanderbl29 Oct 23, 2024
711fe20
Remove on attach
aleksanderbl29 Oct 23, 2024
7ceae42
Fix issues that may have caused CRAN rejection
aleksanderbl29 Oct 25, 2024
4805e92
Fix invalid URIs
aleksanderbl29 Oct 25, 2024
3aa90b2
Cran submission
aleksanderbl29 Oct 25, 2024
cc1091d
Add cran test skips for snapshots and advanced section checks as they…
aleksanderbl29 Oct 25, 2024
3f2ecaa
Specify description
aleksanderbl29 Oct 25, 2024
8a7511c
Updated submission
aleksanderbl29 Oct 25, 2024
5a8f038
Update test snapshots
aleksanderbl29 Oct 28, 2024
bce6f6e
Handle comments from CRAN review and resubmit
aleksanderbl29 Oct 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading