Running 'testthat.R' [47s/56s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(regweight)
  > 
  > test_check("regweight")
  Linking to GEOS 3.11.1, GDAL 3.6.0, PROJ 9.1.0; sf_use_s2() is TRUE
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  
  == Failed tests ================================================================
  -- Error ('test-table.R:36'):  -------------------------------------------------
  Error in `round(x, decimals)`: non-numeric argument to mathematical function
  Backtrace:
       x
    1. +-checkmate::expect_class(summary(w, covs, output = "latex"), "knit_asis") at test-table.R:36:4
    2. | \-checkmate::checkClass(x, classes, ordered, null.ok)
    3. +-base::summary(w, covs, output = "latex")
    4. +-regweight:::summary.regweight(w, covs, output = "latex")
    5. | \-regweight:::format_result(result_discrete, result_cts, type = output)
    6. |   \-gt (local) export_tbl(tbl)
    7. |     \-gt:::build_data(data = data, context = "latex")
    8. |       \-gt:::render_formats(data = data, context = context)
    9. |         \-fmt$func[[eval_func]](data_tbl[[col]][fmt$rows])
   10. |           \-... %>% apply_pattern_fmt_x(pattern = pattern)
   11. +-gt:::apply_pattern_fmt_x(., pattern = pattern)
   12. | \-base::vapply(...)
   13. +-gt (local) format_fn(., context = context)
   14. | \-gt:::create_suffix_df(...)
   15. |   \-gt (local) suffix_fn(round(x, decimals), suffixes = suffix_labels, scale_by = scale_by)
   16. |     \-dplyr::tibble(...)
   17. |       \-tibble:::tibble_quos(xs, .rows, .name_repair)
   18. |         \-rlang::eval_tidy(xs[[j]], mask)
   19. \-base::rep_len(scale_by, length(x))
  
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building 'example-usage.Rmd' using rmarkdown
Quitting from lines 117-122 (example-usage.Rmd) 
Error: processing vignette 'example-usage.Rmd' failed with diagnostics:
non-numeric argument to mathematical function
--- failed re-building 'example-usage.Rmd'

SUMMARY: processing the following file failed:
  'example-usage.Rmd'

Error: Vignette re-building failed.
Execution halted
Running ‘testthat.R’ [32s/51s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(regweight)
  > 
  > test_check("regweight")
  Linking to GEOS 3.11.1, GDAL 3.6.0, PROJ 9.1.0; sf_use_s2() is TRUE
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-table.R:36'):  ─────────────────────────────────────────────────
  Error in `round(x, decimals)`: non-numeric argument to mathematical function
  Backtrace:
       ▆
    1. ├─checkmate::expect_class(summary(w, covs, output = "latex"), "knit_asis") at test-table.R:36:4
    2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
    3. ├─base::summary(w, covs, output = "latex")
    4. ├─regweight:::summary.regweight(w, covs, output = "latex")
    5. │ └─regweight:::format_result(result_discrete, result_cts, type = output)
    6. │   └─gt (local) export_tbl(tbl)
    7. │     └─gt:::build_data(data = data, context = "latex")
    8. │       └─gt:::render_formats(data = data, context = context)
    9. │         └─fmt$func[[eval_func]](data_tbl[[col]][fmt$rows])
   10. │           └─... %>% apply_pattern_fmt_x(pattern = pattern)
   11. ├─gt:::apply_pattern_fmt_x(., pattern = pattern)
   12. │ └─base::vapply(...)
   13. ├─gt (local) format_fn(., context = context)
   14. │ └─gt:::create_suffix_df(...)
   15. │   └─gt (local) suffix_fn(round(x, decimals), suffixes = suffix_labels, scale_by = scale_by)
   16. │     └─dplyr::tibble(...)
   17. │       └─tibble:::tibble_quos(xs, .rows, .name_repair)
   18. │         └─rlang::eval_tidy(xs[[j]], mask)
   19. └─base::rep_len(scale_by, length(x))
  
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘example-usage.Rmd’ using rmarkdown
Quitting from lines 117-122 (example-usage.Rmd) 
Error: processing vignette ‘example-usage.Rmd’ failed with diagnostics:
non-numeric argument to mathematical function
--- failed re-building ‘example-usage.Rmd’

SUMMARY: processing the following file failed:
  ‘example-usage.Rmd’

Error: Vignette re-building failed.
Execution halted
Running ‘testthat.R’ [57s/150s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(regweight)
  > 
  > test_check("regweight")
  Linking to GEOS 3.10.2, GDAL 3.4.3, PROJ 8.2.1; sf_use_s2() is TRUE
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-table.R:36'):  ─────────────────────────────────────────────────
  Error in `round(x, decimals)`: non-numeric argument to mathematical function
  Backtrace:
       ▆
    1. ├─checkmate::expect_class(summary(w, covs, output = "latex"), "knit_asis") at test-table.R:36:4
    2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
    3. ├─base::summary(w, covs, output = "latex")
    4. ├─regweight:::summary.regweight(w, covs, output = "latex")
    5. │ └─regweight:::format_result(result_discrete, result_cts, type = output)
    6. │   └─gt (local) export_tbl(tbl)
    7. │     └─gt:::build_data(data = data, context = "latex")
    8. │       └─gt:::render_formats(data = data, context = context)
    9. │         └─fmt$func[[eval_func]](data_tbl[[col]][fmt$rows])
   10. │           └─... %>% apply_pattern_fmt_x(pattern = pattern)
   11. ├─gt:::apply_pattern_fmt_x(., pattern = pattern)
   12. │ └─base::vapply(...)
   13. ├─gt (local) format_fn(., context = context)
   14. │ └─gt:::create_suffix_df(...)
   15. │   └─gt (local) suffix_fn(round(x, decimals), suffixes = suffix_labels, scale_by = scale_by)
   16. │     └─dplyr::tibble(...)
   17. │       └─tibble:::tibble_quos(xs, .rows, .name_repair)
   18. │         └─rlang::eval_tidy(xs[[j]], mask)
   19. └─base::rep_len(scale_by, length(x))
  
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
--- re-building ‘example-usage.Rmd’ using rmarkdown
Quitting from lines 117-122 (example-usage.Rmd) 
Error: processing vignette 'example-usage.Rmd' failed with diagnostics:
non-numeric argument to mathematical function
--- failed re-building ‘example-usage.Rmd’

SUMMARY: processing the following file failed:
  ‘example-usage.Rmd’

Error: Vignette re-building failed.
Execution halted
Running ‘testthat.R’ [56s/66s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(regweight)
  > 
  > test_check("regweight")
  Linking to GEOS 3.10.2, GDAL 3.4.3, PROJ 8.2.1; sf_use_s2() is TRUE
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-table.R:36'):  ─────────────────────────────────────────────────
  Error in `round(x, decimals)`: non-numeric argument to mathematical function
  Backtrace:
       ▆
    1. ├─checkmate::expect_class(summary(w, covs, output = "latex"), "knit_asis") at test-table.R:36:4
    2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
    3. ├─base::summary(w, covs, output = "latex")
    4. ├─regweight:::summary.regweight(w, covs, output = "latex")
    5. │ └─regweight:::format_result(result_discrete, result_cts, type = output)
    6. │   └─gt (local) export_tbl(tbl)
    7. │     └─gt:::build_data(data = data, context = "latex")
    8. │       └─gt:::render_formats(data = data, context = context)
    9. │         └─fmt$func[[eval_func]](data_tbl[[col]][fmt$rows])
   10. │           └─... %>% apply_pattern_fmt_x(pattern = pattern)
   11. ├─gt:::apply_pattern_fmt_x(., pattern = pattern)
   12. │ └─base::vapply(...)
   13. ├─gt (local) format_fn(., context = context)
   14. │ └─gt:::create_suffix_df(...)
   15. │   └─gt (local) suffix_fn(round(x, decimals), suffixes = suffix_labels, scale_by = scale_by)
   16. │     └─dplyr::tibble(...)
   17. │       └─tibble:::tibble_quos(xs, .rows, .name_repair)
   18. │         └─rlang::eval_tidy(xs[[j]], mask)
   19. └─base::rep_len(scale_by, length(x))
  
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
--- re-building ‘example-usage.Rmd’ using rmarkdown
Quitting from lines 117-122 (example-usage.Rmd) 
Error: processing vignette 'example-usage.Rmd' failed with diagnostics:
non-numeric argument to mathematical function
--- failed re-building ‘example-usage.Rmd’

SUMMARY: processing the following file failed:
  ‘example-usage.Rmd’

Error: Vignette re-building failed.
Execution halted
Running 'testthat.R' [43s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(regweight)
  > 
  > test_check("regweight")
  Linking to GEOS 3.9.3, GDAL 3.5.2, PROJ 8.2.1; sf_use_s2() is TRUE
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-table.R:36'):  ─────────────────────────────────────────────────
  Error in `round(x, decimals)`: non-numeric argument to mathematical function
  Backtrace:
       ▆
    1. ├─checkmate::expect_class(summary(w, covs, output = "latex"), "knit_asis") at test-table.R:36:4
    2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
    3. ├─base::summary(w, covs, output = "latex")
    4. ├─regweight:::summary.regweight(w, covs, output = "latex")
    5. │ └─regweight:::format_result(result_discrete, result_cts, type = output)
    6. │   └─gt (local) export_tbl(tbl)
    7. │     └─gt:::build_data(data = data, context = "latex")
    8. │       └─gt:::render_formats(data = data, context = context)
    9. │         └─fmt$func[[eval_func]](data_tbl[[col]][fmt$rows])
   10. │           └─... %>% apply_pattern_fmt_x(pattern = pattern)
   11. ├─gt:::apply_pattern_fmt_x(., pattern = pattern)
   12. │ └─base::vapply(...)
   13. ├─gt (local) format_fn(., context = context)
   14. │ └─gt:::create_suffix_df(...)
   15. │   └─gt (local) suffix_fn(round(x, decimals), suffixes = suffix_labels, scale_by = scale_by)
   16. │     └─dplyr::tibble(...)
   17. │       └─tibble:::tibble_quos(xs, .rows, .name_repair)
   18. │         └─rlang::eval_tidy(xs[[j]], mask)
   19. └─base::rep_len(scale_by, length(x))
  
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
--- re-building 'example-usage.Rmd' using rmarkdown
Quitting from lines 117-122 (example-usage.Rmd) 
Error: processing vignette 'example-usage.Rmd' failed with diagnostics:
non-numeric argument to mathematical function
--- failed re-building 'example-usage.Rmd'

SUMMARY: processing the following file failed:
  'example-usage.Rmd'

Error: Vignette re-building failed.
Execution halted
Running ‘testthat.R’ [45s/53s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(regweight)
  > 
  > test_check("regweight")
  Linking to GEOS 3.11.1, GDAL 3.6.0, PROJ 9.1.0; sf_use_s2() is TRUE
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-table.R:36'):  ─────────────────────────────────────────────────
  Error in `round(x, decimals)`: non-numeric argument to mathematical function
  Backtrace:
       ▆
    1. ├─checkmate::expect_class(summary(w, covs, output = "latex"), "knit_asis") at test-table.R:36:4
    2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
    3. ├─base::summary(w, covs, output = "latex")
    4. ├─regweight:::summary.regweight(w, covs, output = "latex")
    5. │ └─regweight:::format_result(result_discrete, result_cts, type = output)
    6. │   └─gt (local) export_tbl(tbl)
    7. │     └─gt:::build_data(data = data, context = "latex")
    8. │       └─gt:::render_formats(data = data, context = context)
    9. │         └─fmt$func[[eval_func]](data_tbl[[col]][fmt$rows])
   10. │           └─... %>% apply_pattern_fmt_x(pattern = pattern)
   11. ├─gt:::apply_pattern_fmt_x(., pattern = pattern)
   12. │ └─base::vapply(...)
   13. ├─gt (local) format_fn(., context = context)
   14. │ └─gt:::create_suffix_df(...)
   15. │   └─gt (local) suffix_fn(round(x, decimals), suffixes = suffix_labels, scale_by = scale_by)
   16. │     └─dplyr::tibble(...)
   17. │       └─tibble:::tibble_quos(xs, .rows, .name_repair)
   18. │         └─rlang::eval_tidy(xs[[j]], mask)
   19. └─base::rep_len(scale_by, length(x))
  
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘example-usage.Rmd’ using rmarkdown
Quitting from lines 117-122 (example-usage.Rmd) 
Error: processing vignette ‘example-usage.Rmd’ failed with diagnostics:
non-numeric argument to mathematical function
--- failed re-building ‘example-usage.Rmd’

SUMMARY: processing the following file failed:
  ‘example-usage.Rmd’

Error: Vignette re-building failed.
Execution halted
Running ‘testthat.R’ [45s/54s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(regweight)
  > 
  > test_check("regweight")
  Linking to GEOS 3.11.1, GDAL 3.6.0, PROJ 9.1.0; sf_use_s2() is TRUE
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-table.R:36'):  ─────────────────────────────────────────────────
  Error in `round(x, decimals)`: non-numeric argument to mathematical function
  Backtrace:
       ▆
    1. ├─checkmate::expect_class(summary(w, covs, output = "latex"), "knit_asis") at test-table.R:36:4
    2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
    3. ├─base::summary(w, covs, output = "latex")
    4. ├─regweight:::summary.regweight(w, covs, output = "latex")
    5. │ └─regweight:::format_result(result_discrete, result_cts, type = output)
    6. │   └─gt (local) export_tbl(tbl)
    7. │     └─gt:::build_data(data = data, context = "latex")
    8. │       └─gt:::render_formats(data = data, context = context)
    9. │         └─fmt$func[[eval_func]](data_tbl[[col]][fmt$rows])
   10. │           └─... %>% apply_pattern_fmt_x(pattern = pattern)
   11. ├─gt:::apply_pattern_fmt_x(., pattern = pattern)
   12. │ └─base::vapply(...)
   13. ├─gt (local) format_fn(., context = context)
   14. │ └─gt:::create_suffix_df(...)
   15. │   └─gt (local) suffix_fn(round(x, decimals), suffixes = suffix_labels, scale_by = scale_by)
   16. │     └─dplyr::tibble(...)
   17. │       └─tibble:::tibble_quos(xs, .rows, .name_repair)
   18. │         └─rlang::eval_tidy(xs[[j]], mask)
   19. └─base::rep_len(scale_by, length(x))
  
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘example-usage.Rmd’ using rmarkdown
Quitting from lines 117-122 (example-usage.Rmd) 
Error: processing vignette ‘example-usage.Rmd’ failed with diagnostics:
non-numeric argument to mathematical function
--- failed re-building ‘example-usage.Rmd’

SUMMARY: processing the following file failed:
  ‘example-usage.Rmd’

Error: Vignette re-building failed.
Execution halted
Running 'testthat.R' [46s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(regweight)
  > 
  > test_check("regweight")
  Linking to GEOS 3.9.3, GDAL 3.5.2, PROJ 8.2.1; sf_use_s2() is TRUE
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-table.R:36'):  ─────────────────────────────────────────────────
  Error in `round(x, decimals)`: non-numeric argument to mathematical function
  Backtrace:
       ▆
    1. ├─checkmate::expect_class(summary(w, covs, output = "latex"), "knit_asis") at test-table.R:36:4
    2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
    3. ├─base::summary(w, covs, output = "latex")
    4. ├─regweight:::summary.regweight(w, covs, output = "latex")
    5. │ └─regweight:::format_result(result_discrete, result_cts, type = output)
    6. │   └─gt (local) export_tbl(tbl)
    7. │     └─gt:::build_data(data = data, context = "latex")
    8. │       └─gt:::render_formats(data = data, context = context)
    9. │         └─fmt$func[[eval_func]](data_tbl[[col]][fmt$rows])
   10. │           └─... %>% apply_pattern_fmt_x(pattern = pattern)
   11. ├─gt:::apply_pattern_fmt_x(., pattern = pattern)
   12. │ └─base::vapply(...)
   13. ├─gt (local) format_fn(., context = context)
   14. │ └─gt:::create_suffix_df(...)
   15. │   └─gt (local) suffix_fn(round(x, decimals), suffixes = suffix_labels, scale_by = scale_by)
   16. │     └─dplyr::tibble(...)
   17. │       └─tibble:::tibble_quos(xs, .rows, .name_repair)
   18. │         └─rlang::eval_tidy(xs[[j]], mask)
   19. └─base::rep_len(scale_by, length(x))
  
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
--- re-building 'example-usage.Rmd' using rmarkdown
Quitting from lines 117-122 (example-usage.Rmd) 
Error: processing vignette 'example-usage.Rmd' failed with diagnostics:
non-numeric argument to mathematical function
--- failed re-building 'example-usage.Rmd'

SUMMARY: processing the following file failed:
  'example-usage.Rmd'

Error: Vignette re-building failed.
Execution halted
Running 'testthat.R' [50s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(regweight)
  > 
  > test_check("regweight")
  Linking to GEOS 3.10.2, GDAL 3.4.1, PROJ 7.2.1; sf_use_s2() is TRUE
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  
  == Failed tests ================================================================
  -- Error ('test-table.R:36'):  -------------------------------------------------
  Error in `round(x, decimals)`: non-numeric argument to mathematical function
  Backtrace:
       x
    1. +-checkmate::expect_class(summary(w, covs, output = "latex"), "knit_asis") at test-table.R:36:4
    2. | \-checkmate::checkClass(x, classes, ordered, null.ok)
    3. +-base::summary(w, covs, output = "latex")
    4. +-regweight:::summary.regweight(w, covs, output = "latex")
    5. | \-regweight:::format_result(result_discrete, result_cts, type = output)
    6. |   \-gt (local) export_tbl(tbl)
    7. |     \-gt:::build_data(data = data, context = "latex")
    8. |       \-gt:::render_formats(data = data, context = context)
    9. |         \-fmt$func[[eval_func]](data_tbl[[col]][fmt$rows])
   10. |           \-... %>% apply_pattern_fmt_x(pattern = pattern)
   11. +-gt:::apply_pattern_fmt_x(., pattern = pattern)
   12. | \-base::vapply(...)
   13. +-gt (local) format_fn(., context = context)
   14. | \-gt:::create_suffix_df(...)
   15. |   \-gt (local) suffix_fn(round(x, decimals), suffixes = suffix_labels, scale_by = scale_by)
   16. |     \-dplyr::tibble(...)
   17. |       \-tibble:::tibble_quos(xs, .rows, .name_repair)
   18. |         \-rlang::eval_tidy(xs[[j]], mask)
   19. \-base::rep_len(scale_by, length(x))
  
  [ FAIL 1 | WARN 122 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
--- re-building 'example-usage.Rmd' using rmarkdown
Quitting from lines 117-122 (example-usage.Rmd) 
Error: processing vignette 'example-usage.Rmd' failed with diagnostics:
non-numeric argument to mathematical function
--- failed re-building 'example-usage.Rmd'

SUMMARY: processing the following file failed:
  'example-usage.Rmd'

Error: Vignette re-building failed.
Execution halted