revdep/checks.noindex/waywiser/old/waywiser.Rcheck/tests/testthat/_snaps/srr-ww_global_geary_c.md

srr: expected failures for ww_global_geary_c

Code
  ww_global_geary_c_vec(worldclim_predicted$response, tail(worldclim_predicted$
    predicted, -1), worldclim_weights)
Condition
  Error in `yardstick_vec()`:
  ! Length of `truth` (10000) and `estimate` (9999) must match.
Code
  ww_global_geary_c_vec(tail(worldclim_predicted$response, -1),
  worldclim_predicted$predicted, worldclim_weights)
Condition
  Error in `yardstick_vec()`:
  ! Length of `truth` (9999) and `estimate` (10000) must match.
Code
  ww_global_geary_c(worldclim_predicted, predicted, response)
Condition
  Error in `ww_global_geary_c()`:
  ! `truth` must be numeric.
Code
  ww_global_geary_c(worldclim_predicted, response, predicted)
Condition
  Error in `ww_global_geary_c()`:
  ! `estimate` must be numeric.
Code
  ww_global_geary_c_vec(worldclim_predicted$response, worldclim_predicted$
    predicted, worldclim_weights)
Condition
  Error in `yardstick_vec()`:
  ! `estimate` must be numeric.
Code
  ww_global_geary_c_vec(worldclim_predicted$predicted, worldclim_predicted$
    response, worldclim_weights)
Condition
  Error in `yardstick_vec()`:
  ! `truth` must be numeric.
Code
  ww_global_geary_c(worldclim_predicted, response, predicted)
Condition
  Error in `ww_global_geary_c()`:
  ! `estimate` must be numeric.
Code
  ww_global_geary_c(worldclim_predicted, predicted, response)
Condition
  Error in `ww_global_geary_c()`:
  ! `truth` must be numeric.
Code
  ww_global_geary_c(worldclim_predicted, predicted, response)$.estimate
Condition
  Error in `spatial_yardstick_df()`:
  ! Missing values in data.
  i waywiser can't handle missing data for functions that use spatial weights.
Code
  ww_global_geary_c(worldclim_predicted, response, predicted)$.estimate
Condition
  Error in `spatial_yardstick_df()`:
  ! Missing values in data.
  i waywiser can't handle missing data for functions that use spatial weights.
Code
  ww_global_geary_c_vec(worldclim_predicted$predicted, worldclim_predicted$
    response, worldclim_weights)
Condition
  Error in `spatial_yardstick_vec()`:
  ! Missing values in data.
  i waywiser can't handle missing data for functions that use spatial weights.
Code
  ww_global_geary_c_vec(worldclim_predicted$response, worldclim_predicted$
    predicted, worldclim_weights)
Condition
  Error in `spatial_yardstick_vec()`:
  ! Missing values in data.
  i waywiser can't handle missing data for functions that use spatial weights.
Code
  ww_global_geary_c_vec(numeric(), numeric(), structure(list(), class = "listw"))
Condition
  Error in `yardstick_vec()`:
  ! 0 non-missing values were passed to `truth`.
Code
  ww_global_geary_c(head(worldclim_predicted, 0), response, predicted, structure(
    list(), class = "listw"))
Condition
  Error in `ww_global_geary_c()`:
  ! 0 non-missing values were passed to `truth`.
Code
  ww_global_geary_c(head(worldclim_predicted, 0), predicted, response, structure(
    list(), class = "listw"))
Condition
  Error in `ww_global_geary_c()`:
  ! 0 non-missing values were passed to `truth`.
Code
  ww_global_geary_c_vec(NA_real_, NA_real_, structure(list(neighbours = 1),
  class = "listw"))
Condition
  Error in `spatial_yardstick_vec()`:
  ! Missing values in data.
  i waywiser can't handle missing data for functions that use spatial weights.
Code
  ww_global_geary_c(worldclim_predicted, response, predicted)$.estimate
Condition
  Error in `spatial_yardstick_df()`:
  ! Missing values in data.
  i waywiser can't handle missing data for functions that use spatial weights.
Code
  ww_global_geary_c(worldclim_predicted, predicted, response)$.estimate
Condition
  Error in `spatial_yardstick_df()`:
  ! Missing values in data.
  i waywiser can't handle missing data for functions that use spatial weights.
Code
  ww_global_geary_c_vec(worldclim_simulation$response, worldclim_simulation$
    response, worldclim_weights)
Output
  [1] NaN
Code
  ww_global_geary_c(worldclim_simulation, response, response)
Output
  # A tibble: 1 x 3
    .metric        .estimator .estimate
    <chr>          <chr>          <dbl>
  1 global_geary_c standard         NaN

other generic srr standards

Code
  withr::with_seed(123, ww_global_geary_c(worldclim_loaded, bio13, bio19))
Output
  # A tibble: 1 x 3
    .metric        .estimator .estimate
    <chr>          <chr>          <dbl>
  1 global_geary_c standard      0.0731
Code
  withr::with_seed(123, ww_global_geary_c(worldclim_loaded, bio13, bio19))
Output
  # A tibble: 1 x 3
    .metric        .estimator .estimate
    <chr>          <chr>          <dbl>
  1 global_geary_c standard      0.0731
Code
  withr::with_seed(123, ww_global_geary_c_vec(worldclim_loaded$bio13,
  worldclim_loaded$bio19, worldclim_weights))
Output
  [1] 0.07310762
Code
  withr::with_seed(123, ww_global_geary_c_vec(worldclim_loaded$bio13,
  worldclim_loaded$bio19, worldclim_weights))
Output
  [1] 0.07310762
Code
  withr::with_seed(123, ww_global_geary_c(worldclim_loaded, bio13, bio19))
Output
  # A tibble: 1 x 3
    .metric        .estimator .estimate
    <chr>          <chr>          <dbl>
  1 global_geary_c standard      0.0731
Code
  withr::with_seed(123, ww_global_geary_c(worldclim_loaded, bio13, bio19,
    function(data) ww_build_weights(ww_make_point_neighbors(data, k = 5))))
Output
  # A tibble: 1 x 3
    .metric        .estimator .estimate
    <chr>          <chr>          <dbl>
  1 global_geary_c standard       0.155
Code
  withr::with_seed(123, ww_global_geary_c_vec(worldclim_loaded$bio13,
  worldclim_loaded$bio19, other_weights))
Output
  [1] 0.1546693
Code
  withr::with_seed(123, ww_global_geary_c_vec(worldclim_loaded$bio13,
  worldclim_loaded$bio19, other_weights))
Output
  [1] 0.1546693


AFIT-R/vip documentation built on Aug. 22, 2023, 8:59 a.m.