diff --git a/.zenodo.json b/.zenodo.json index 19b6fd2..5311e49 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -4,7 +4,7 @@ "license": "GPL-3.0", "upload_type": "software", "access_right": "open", - "version": "0.9.0", + "version": "0.9.1", "creators": [ { "name": "Vanderhaeghe, Floris", diff --git a/DESCRIPTION b/DESCRIPTION index f14853a..e611abc 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: n2khab Title: Providing Preprocessed Reference Data for Flemish Natura 2000 Habitat Analyses -Version: 0.9.0 +Version: 0.9.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")), diff --git a/NEWS.md b/NEWS.md index f15b1f1..e6effdf 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,8 @@ +# n2khab 0.9.1 (2023-11-24) + +- Added workaround for a note during package installation ([d300e4a](https://github.com/inbo/n2khab/commit/d300e4a)). +- Package startup message: improve recommended code to update package ([793e303](https://github.com/inbo/n2khab/commit/793e303)). + # n2khab 0.9.0 (2023-11-22) - `download_zenodo()` has been improved (#169): diff --git a/R/filemanagement.R b/R/filemanagement.R index ffe5db7..8fdc93e 100644 --- a/R/filemanagement.R +++ b/R/filemanagement.R @@ -257,7 +257,7 @@ human_filesize <- function(x) { assert_that(all(x %% 1 == 0 & x >= 0)) magnitude <- log(x, base = 1024) %>% - floor() %>% + floor(x = .) %>% pmin(8) unit <- factor(magnitude, levels = 0:8, diff --git a/R/n2khab.R b/R/n2khab.R index d093795..b4d7457 100644 --- a/R/n2khab.R +++ b/R/n2khab.R @@ -42,10 +42,12 @@ utils::globalVariables(c(".")) rep("=", getOption("width")), "\nIt is advised to upgrade n2khab to its current version ", release, - ". Run:\n", + ". Run:\n\n", + 'detach("package:n2khab", unload = TRUE)\n', 'install.packages("n2khab", repos = c(inbo = "https://inbo.r-universe.dev", CRAN = "https://cloud.r-project.org"))', "\n", + "library(n2khab)\n", rep("=", getOption("width")) ) }