Skip to content

Commit

Permalink
Merge pull request #95 from inbo/version
Browse files Browse the repository at this point in the history
Release version 0.3.1
  • Loading branch information
florisvdh authored Oct 26, 2020
2 parents 1510acf + f10f220 commit 70c3998
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "GPL-3.0",
"upload_type": "software",
"access_right": "open",
"version": "0.3.0",
"version": "0.3.1",
"creators": [
{
"name": "Vanderhaeghe, Floris",
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: n2khab
Title: Providing Preprocessed Reference Data For Flemish Natura 2000 Habitat Analyses
Version: 0.3.0
Version: 0.3.1
Authors@R: c(
person("Floris", "Vanderhaeghe", email = "floris.vanderhaeghe@inbo.be", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6378-6229")),
person("Toon", "Westra", email = "toon.westra@inbo.be", role = c("aut"), comment = c(ORCID = "0000-0003-2478-9459")),
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## n2khab 0.3.1

#### Minor patch

- `read_watersurfaces()` has been limited explicitly to using data source version 'watersurfaces_v1.0'.
Accommodation of the newer 'watersurfaces_v1.1' is planned for later.

## n2khab 0.3.0

#### Breaking change
Expand Down
6 changes: 5 additions & 1 deletion R/read_habitatdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,13 @@ read_watersurfaces_hab <-
read_watersurfaces <-
function(file = file.path(fileman_up("n2khab_data"),
"10_raw/watersurfaces"),
extended = FALSE){
extended = FALSE,
version = "watersurfaces_v1.0") {

assert_that(file.exists(file))
assert_that(is.string(version))

version <- match.arg(version)

suppressWarnings(
watersurfaces <- read_sf(file,
Expand Down
6 changes: 5 additions & 1 deletion man/read_watersurfaces.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 70c3998

Please sign in to comment.