Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemahoney218 committed Feb 12, 2025
1 parent 5423f90 commit f951b51
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 53 deletions.
128 changes: 85 additions & 43 deletions CITATION.cff

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: waywiser
Title: Ergonomic Methods for Assessing Spatial Models
Version: 0.6.0.9000
Version: 0.6.1
Authors@R: c(
person("Michael", "Mahoney", , "mike.mahoney.218@gmail.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2402-304X")),
Expand Down Expand Up @@ -87,4 +87,4 @@ Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# waywiser (development version)
# waywiser 0.6.1

* Avoid using `\()` in order to keep R version needed below 4.1

* Update tests for new versions of dependencies

# waywiser 0.6.0

* Metric functions now return `NA` in all cases where they previously returned `NaN`.
Expand Down
2 changes: 1 addition & 1 deletion R/multi_scale.R
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ handle_grids <- function(data, grids, autoexpand_grid, data_crs, ...) {
grid_args <- stats::setNames(
lapply(
grid_args,
function (x) rep(x, length.out = grid_arg_idx)
function(x) rep(x, length.out = grid_arg_idx)
),
names(grid_args)
)
Expand Down
3 changes: 3 additions & 0 deletions R/tidy_importance.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tidy_importance <- function(importance, ...) {
UseMethod("tidy_importance")
}

#' @noRd
tidy_importance.vi <- function(importance, ...) {
rlang::check_dots_empty()
data.frame(
Expand All @@ -19,6 +20,7 @@ tidy_importance.vi <- function(importance, ...) {
)
}

#' @noRd
tidy_importance.data.frame <- function(importance, ...) {
rlang::check_dots_empty()
if (!all(c("term", "estimate") %in% names(importance))) {
Expand All @@ -30,6 +32,7 @@ tidy_importance.data.frame <- function(importance, ...) {
importance
}

#' @noRd
tidy_importance.default <- function(importance, ...) {
cls <- class(importance)[1]
rlang::abort(
Expand Down
6 changes: 3 additions & 3 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"codeRepository": "https://github.com/ropensci/waywiser",
"issueTracker": "https://github.com/ropensci/waywiser/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "0.5.1.9000",
"version": "0.6.1",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.4.0 (2024-04-24)",
"runtimePlatform": "R version 4.4.2 (2024-10-31)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -502,7 +502,7 @@
},
"SystemRequirements": null
},
"fileSize": "6952.73KB",
"fileSize": "6969.078KB",
"citation": [
{
"@type": "CreativeWork",
Expand Down
4 changes: 1 addition & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
This is the ninth CRAN release of waywiser. This minor release improves the
consistency of metric function outputs and adds support for multi-scale
calculations of non-regression metrics.
This is the tenth CRAN release of waywiser. This patch release addresses NOTEs and warnings from CRAN.

## R CMD check results

Expand Down
Binary file modified man/figures/README-unnamed-chunk-5-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f951b51

Please sign in to comment.