@@ -19,7 +19,6 @@ knitr::opts_chunk$set(
19
19
[ ![ R-CMD-check] ( https://github.com/aleksanderbl29/geodk/actions/workflows/R-CMD-check.yaml/badge.svg )] ( https://github.com/aleksanderbl29/geodk/actions/workflows/R-CMD-check.yaml )
20
20
[ ![ Codecov test coverage] ( https://codecov.io/gh/aleksanderbl29/geodk/graph/badge.svg )] ( https://app.codecov.io/gh/aleksanderbl29/geodk )
21
21
[ ![ Project Status: WIP – Development in progress] ( https://www.repostatus.org/badges/latest/wip.svg )] ( https://www.repostatus.org/#wip )
22
-
23
22
<!-- badges: end -->
24
23
25
24
` {geodk} ` provides access to Danish geospatial data.
@@ -33,6 +32,48 @@ You can install the development version of geodk from [GitHub](https://github.co
33
32
pak :: pak(" aleksanderbl29/geodk" )
34
33
```
35
34
35
+
36
+
37
+ ## Installation
38
+
39
+ ``` {r check_cran, include=FALSE}
40
+ if (!require(available)) install.packages("available")
41
+ is_on_cran <- !available::available_on_cran("geodk")
42
+ ```
43
+
44
+ ``` {r cran_instruct, echo=FALSE, results='asis', eval=is_on_cran}
45
+ cat("You can install `{geodk}` from CRAN with:")
46
+ ```
47
+
48
+ ``` {r cran_code, eval=FALSE, include=is_on_cran}
49
+ install.packages("geodk")
50
+ ```
51
+
52
+ ``` {r r_universe_instruct, echo=FALSE, results='asis'}
53
+ if (is_on_cran) {
54
+ cat("Or you can install the latest pre-release version of `{geodk}` from r-universe with:")
55
+ } else if (!is_on_cran) {
56
+ cat("You can install `{geodk}` from r-universe with:")
57
+ }
58
+ ```
59
+
60
+ ``` {r r_universe, eval=FALSE}
61
+ install.packages(
62
+ "geodk",
63
+ repos = c(
64
+ aleksanderbl29 = "https://aleksanderbl29.r-universe.dev",
65
+ getOption("repos")
66
+ )
67
+ )
68
+ ```
69
+
70
+ You can install the latest development version of ` {geodk} ` from [ GitHub] ( https://github.com/aleksanderbl29/geodk ) with:
71
+
72
+ ``` r
73
+ # install.packages("devtools")
74
+ devtools :: install_github(" aleksanderbl29/geodk" )
75
+ ```
76
+
36
77
## Functions
37
78
38
79
` {geodk} ` provides to main sets of functions:
0 commit comments