Skip to content

Commit

Permalink
Add package startup message (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksanderbl29 authored Nov 12, 2024
2 parents 62eed87 + fcf8d90 commit 4857e03
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dawaR
Title: An API Wrapper for 'DAWA' - 'The Danish Address Web API'
Date: 2024-10-28
Version: 0.2.3
Version: 0.2.4
Authors@R:
person("Aleksander", "Bang-Larsen", , "[email protected]",
role = c("aut", "cre", "cph"),
Expand Down
5 changes: 4 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# dawaR 0.2.4

* Add package startup message on terms and conditions.

# dawaR 0.2.3 (2024-10-23)

* Initial CRAN submission.
* Add package startup message

# dawaR 0.2.2 (2024-10-20)

Expand Down
6 changes: 6 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# nolint start
.onAttach <- function(...) {
packageStartupMessage("## {dawaR} provides data from the Danish Agency of Climate Data")
packageStartupMessage("## Terms and conditions apply.")
packageStartupMessage("## Read more at: https://dawadocs.dataforsyningen.dk/dok/om#vilkaar")
}

get_status_message <- function() {
httr2::request("https://raw.githubusercontent.com/aleksanderbl29/dawaR/refs/heads/main/status-message") |>
httr2::req_perform() |>
Expand Down

0 comments on commit 4857e03

Please sign in to comment.