-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
82 lines (62 loc) · 3.63 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
fig.width = 12,
fig.height = 9
)
```
# dawaR <a href="https://dawar.aleksanderbl.dk/"><img src="man/figures/logo.png" align="right" height="139" alt="dawaR website" /></a>
<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/dawaR)](https://CRAN.R-project.org/package=dawaR)
[![r-universe](https://aleksanderbl29.r-universe.dev/badges/dawaR)](https://aleksanderbl29.r-universe.dev/dawaR)
[![R-CMD-check](https://github.com/aleksanderbl29/dawaR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/aleksanderbl29/dawaR/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/aleksanderbl29/dawaR/graph/badge.svg)](https://app.codecov.io/gh/aleksanderbl29/dawaR)
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
<!-- badges: end -->
The goal of `{dawaR}` is to make access to the Danish Web Address API convenient for many more users.
## Installation
```{r check_cran, include=FALSE}
if (!require(available)) install.packages("available")
is_on_cran <- !available::available_on_cran("dawaR")
```
```{r cran_instruct, echo=FALSE, results='asis', eval=is_on_cran}
cat("You can install `{dawaR}` from CRAN with:")
```
```{r cran_code, eval=FALSE, include=is_on_cran}
install.packages("dawaR")
```
```{r r_universe_instruct, echo=FALSE, results='asis'}
if (is_on_cran) {
cat("Or you can install the latest pre-release version of `{dawaR}` from r-universe with:")
} else if (!is_on_cran) {
cat("You can install `{dawaR}` from r-universe with:")
}
```
```{r r_universe, eval=FALSE}
install.packages(
"dawaR",
repos = c(
aleksanderbl29 = "https://aleksanderbl29.r-universe.dev",
getOption("repos")
)
)
```
You can install the latest development version of `{dawaR}` from [GitHub](https://github.com/aleksanderbl29/dawaR) with:
``` r
# install.packages("devtools")
devtools::install_github("aleksanderbl29/dawaR")
```
If you install the package in an environment configured with [`renv`](https://rstudio.github.io/renv/index.html) on MacOS, please consult `vignette("renv-issues")` to ensure that `get_map_data()` works as intended.
## Usage
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
The government entity that maintains the Danish Web Address API has disclosed that the API will be phased out at some point. When that time comes, this package will become deprecated and I will have another package ready to provide the same functionality. The service that is to replace DAWA is called Datafordeleren (The Data Distribution) and is in the works. Some functionality in relation to The Central Register of Buildings (BBR) has already been moved to the new service.
If you know how to read danish (or use machine-translation) you can keep yourself up to date on [this page](https://dataforsyningen.dk/data/4924).
But no worries! It does not sound like the shutdown of DAWA will happen anytime soon or without due notice. You can read more about this and read the history of updates in `vignette("status")`. Any minor updates will be shown there. Major ones will be on this page. Both will be communicated with `lifecycle` in the functions.