Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [11s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(declared)
  > 
  > test_check("declared")
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  [ FAIL 4 | WARN 0 | SKIP 31 | PASS 437 ]
  
  ══ Skipped tests (31) ══════════════════════════════════════════════════════════
  • On CRAN (31): 'test-as.character.R:43:3', 'test-as.declared.R:94:3',
    'test-as.factor.R:34:3', 'test-class_methods.R:308:3',
    'test-declared.R:140:3', 'test-drop_undeclare.R:70:3', 'test-haven.R:131:3',
    'test-internals.R:201:3', 'test-is.empty.R:21:3', 'test-labelled.R:146:3',
    'test-labels.R:130:3', 'test-measurement.R:38:3',
    'test-missing_range.R:46:3', 'test-missing_values.R:43:3',
    'test-onLoad.R:167:3', 'test-pillar.R:94:3', 'test-print.R:118:3',
    'test-print.R:150:3', 'test-vctrs.R:16:3', 'test-vroom.R:12:3',
    'test-w_IQR.R:22:3', 'test-w_fivenum.R:39:3', 'test-w_mean.R:82:3',
    'test-w_median.R:68:3', 'test-w_mode.R:33:3', 'test-w_quantile.R:91:3',
    'test-w_sd.R:52:3', 'test-w_standardize.R:63:3', 'test-w_summary.R:24:3',
    'test-w_table.R:120:3', 'test-w_var.R:40:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-onLoad.R:99:3'): onLoad functions work ─────────────────────────
  Error in `var(if (is.vector(x) || is.factor(x)) x else as.double(x), na.rm = na.rm)`: is.atomic(y) is not TRUE
  Backtrace:
      ▆
   1. ├─testthat::expect_length(sd(x), 1) at test-onLoad.R:99:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─declared (local) sd(x)
   5.   └─declared (local) var(if (is.vector(x) || is.factor(x)) x else as.double(x), na.rm = na.rm)
   6.     └─base::stopifnot(is.atomic(y))
  ── Error ('test-w_mode.R:20:3'): w_mode() works ────────────────────────────────
  Error: 'wt' should be an atomic vector with finite values.
  
  
  Backtrace:
      ▆
   1. ├─testthat::expect_message(w_mode(x[-1]), "Multiple modes detected") at test-w_mode.R:20:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─declared::w_mode(x[-1])
   8.   └─declared:::stopError_("'wt' should be an atomic vector with finite values.")
  ── Error ('test-w_sd.R:9:3'): w_sd() works ─────────────────────────────────────
  Error in `var(x, na.rm = na.rm)`: is.atomic(y) is not TRUE
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(w_sd(x), sd(c(1:5, NA), na.rm = TRUE)) at test-w_sd.R:9:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─declared::w_sd(x)
   5.   └─declared::w_var(x = x, wt = wt, method = method, na.rm = na.rm)
   6.     └─declared (local) var(x, na.rm = na.rm)
   7.       └─base::stopifnot(is.atomic(y))
  ── Error ('test-w_var.R:15:3'): w_var() works ──────────────────────────────────
  Error in `var(x, na.rm = na.rm)`: is.atomic(y) is not TRUE
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(w_var(x), var(c(1:5, NA), na.rm = TRUE)) at test-w_var.R:15:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─declared::w_var(x)
   5.   └─declared (local) var(x, na.rm = na.rm)
   6.     └─base::stopifnot(is.atomic(y))
  
  [ FAIL 4 | WARN 0 | SKIP 31 | PASS 437 ]
  Error: Test failures
  Execution halted