Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(cattonum)
  cattonum is seeking a new maintainer; please respond if interested: https://github.com/bfgray3/cattonum/issues/40
  > 
  > test_check("cattonum")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-conditions.R:21:3): conditions work correctly. ──────────────────
  Error in `match.fun(FUN)`: object 'mean_cattonum' not found
  Backtrace:
       █
    1. ├─testthat::expect_message(...) test-conditions.R:21:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─cattonum::catto_mean(foo)
    7. ├─purrr:::catto_mean.data.frame(foo)
    8. │ └─rlang::eval_tidy(call, mask)
    9. ├─(function (train, ..., aggregate_fun, response = NULL, test = NULL, ...
   10. └─cattonum:::catto_aggregate.data.frame(...)
   11.   └─base::lapply(...)
   12.     └─cattonum:::FUN(X[[i]], ...)
   13.       └─stats::ave(.x, .grouping, FUN = .f)
   14.         └─base::lapply(split(x, g), FUN)
   15.           └─base::match.fun(FUN)
  ── Error (test-loo.R:71:3): catto_loo correctly encodes test data. ─────────────
  Error in `match.fun(FUN)`: object 'mean_cattonum' not found
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-loo.R:71:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─cattonum::catto_loo(df_fact, test = test_df)
    5. ├─cattonum:::catto_loo.data.frame(df_fact, test = test_df)
    6. │ ├─cattonum::catto_mean(train, cats, response = response, test = test)
    7. │ └─purrr:::catto_mean.data.frame(...)
    8. │   └─rlang::eval_tidy(call, mask)
    9. ├─(function (train, ..., aggregate_fun, response = NULL, test = NULL, ...
   10. └─cattonum:::catto_aggregate.data.frame(...)
   11.   └─base::lapply(...)
   12.     └─cattonum:::FUN(X[[i]], ...)
   13.       └─stats::ave(.x, .grouping, FUN = .f)
   14.         └─base::lapply(split(x, g), FUN)
   15.           └─base::match.fun(FUN)
  ── Error (test-mean.R:36:3): catto_mean(): multiple data.frame training columns. ──
  Error in `match.fun(FUN)`: object 'mean_cattonum' not found
  Backtrace:
       █
    1. ├─cattonum:::check_x1_x2_resp(catto_mean, "data.frame", .resp = resp_name) test-mean.R:36:2
    2. │ ├─cattonum:::.encoder(fact, response = .resp) C:\r_packages\pkgcheck\CRAN\cattonum\cattonum.Rcheck\tests\testthat\helpers.R:62:2
    3. │ └─purrr:::catto_mean.data.frame(fact, response = .resp)
    4. │   └─rlang::eval_tidy(call, mask)
    5. ├─(function (train, ..., aggregate_fun, response = NULL, test = NULL, ...
    6. └─cattonum:::catto_aggregate.data.frame(...)
    7.   └─base::lapply(...)
    8.     └─cattonum:::FUN(X[[i]], ...)
    9.       └─stats::ave(.x, .grouping, FUN = .f)
   10.         └─base::lapply(split(x, g), FUN)
   11.           └─base::match.fun(FUN)
  ── Error (test-mean.R:41:3): catto_mean(): multiple tibble training columns. ───
  Error in `match.fun(FUN)`: object 'mean_cattonum' not found
  Backtrace:
       █
    1. ├─cattonum:::check_x1_x2_resp(catto_mean, "tibble", .resp = resp_name) test-mean.R:41:2
    2. │ ├─cattonum:::.encoder(fact, response = .resp) C:\r_packages\pkgcheck\CRAN\cattonum\cattonum.Rcheck\tests\testthat\helpers.R:62:2
    3. │ └─purrr:::catto_mean.data.frame(fact, response = .resp)
    4. │   └─rlang::eval_tidy(call, mask)
    5. ├─(function (train, ..., aggregate_fun, response = NULL, test = NULL, ...
    6. └─cattonum:::catto_aggregate.data.frame(...)
    7.   └─base::lapply(...)
    8.     └─cattonum:::FUN(X[[i]], ...)
    9.       └─stats::ave(.x, .grouping, FUN = .f)
   10.         └─base::lapply(split(x, g), FUN)
   11.           └─base::match.fun(FUN)
  ── Error (test-mean.R:46:3): catto_mean: one data.frame training column. ───────
  Error in `match.fun(FUN)`: object 'mean_cattonum' not found
  Backtrace:
       █
    1. ├─cattonum:::check_x1_resp(catto_mean, "data.frame", .resp = resp_name) test-mean.R:46:2
    2. │ ├─cattonum:::.encoder(fact, "x1", response = .resp) C:\r_packages\pkgcheck\CRAN\cattonum\cattonum.Rcheck\tests\testthat\helpers.R:106:2
    3. │ └─purrr:::catto_mean.data.frame(fact, "x1", response = .resp)
    4. │   └─rlang::eval_tidy(call, mask)
    5. ├─(function (train, ..., aggregate_fun, response = NULL, test = NULL, ...
    6. └─cattonum:::catto_aggregate.data.frame(...)
    7.   └─base::lapply(...)
    8.     └─cattonum:::FUN(X[[i]], ...)
    9.       └─stats::ave(.x, .grouping, FUN = .f)
   10.         └─base::lapply(split(x, g), FUN)
   11.           └─base::match.fun(FUN)
  ── Error (test-mean.R:59:3): catto_mean: one tibble training column. ───────────
  Error in `match.fun(FUN)`: object 'mean_cattonum' not found
  Backtrace:
       █
    1. ├─cattonum:::check_x1_resp(catto_mean, "tibble", .resp = resp_name) test-mean.R:59:2
    2. │ ├─cattonum:::.encoder(fact, "x1", response = .resp) C:\r_packages\pkgcheck\CRAN\cattonum\cattonum.Rcheck\tests\testthat\helpers.R:106:2
    3. │ └─purrr:::catto_mean.data.frame(fact, "x1", response = .resp)
    4. │   └─rlang::eval_tidy(call, mask)
    5. ├─(function (train, ..., aggregate_fun, response = NULL, test = NULL, ...
    6. └─cattonum:::catto_aggregate.data.frame(...)
    7.   └─base::lapply(...)
    8.     └─cattonum:::FUN(X[[i]], ...)
    9.       └─stats::ave(.x, .grouping, FUN = .f)
   10.         └─base::lapply(split(x, g), FUN)
   11.           └─base::match.fun(FUN)
  ── Error (test-mean.R:72:3): catto_mean correctly encodes test data. ───────────
  Error in `match.fun(FUN)`: object 'mean_cattonum' not found
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-mean.R:72:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─cattonum::catto_mean(df_fact, test = test_df)
    5. ├─purrr:::catto_mean.data.frame(df_fact, test = test_df)
    6. │ └─rlang::eval_tidy(call, mask)
    7. ├─(function (train, ..., aggregate_fun, response = NULL, test = NULL, ...
    8. └─cattonum:::catto_aggregate.data.frame(...)
    9.   └─base::lapply(...)
   10.     └─cattonum:::FUN(X[[i]], ...)
   11.       └─stats::ave(.x, .grouping, FUN = .f)
   12.         └─base::lapply(split(x, g), FUN)
   13.           └─base::match.fun(FUN)
  ── Error (test-mean.R:85:3): catto_mean() correctly encodes data.frame with logicals. ──
  Error in `match.fun(FUN)`: object 'mean_cattonum' not found
  Backtrace:
       █
    1. ├─testthat::expect_equal(catto_mean(df_logi, response = "y"), cattonum_df(df_logi_expected)) test-mean.R:85:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─cattonum::catto_mean(df_logi, response = "y")
    5. ├─purrr:::catto_mean.data.frame(df_logi, response = "y")
    6. │ └─rlang::eval_tidy(call, mask)
    7. ├─(function (train, ..., aggregate_fun, response = NULL, test = NULL, ...
    8. └─cattonum:::catto_aggregate.data.frame(...)
    9.   └─base::lapply(...)
   10.     └─cattonum:::FUN(X[[i]], ...)
   11.       └─stats::ave(.x, .grouping, FUN = .f)
   12.         └─base::lapply(split(x, g), FUN)
   13.           └─base::match.fun(FUN)
  ── Error (test-mean.R:98:3): catto_mean() correctly encodes tibble with logicals. ──
  Error in `match.fun(FUN)`: object 'mean_cattonum' not found
  Backtrace:
       █
    1. ├─testthat::expect_equivalent(...) test-mean.R:98:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─cattonum::catto_mean(tbl_logi, response = "y")
    5. ├─purrr:::catto_mean.data.frame(tbl_logi, response = "y")
    6. │ └─rlang::eval_tidy(call, mask)
    7. ├─(function (train, ..., aggregate_fun, response = NULL, test = NULL, ...
    8. └─cattonum:::catto_aggregate.data.frame(...)
    9.   └─base::lapply(...)
   10.     └─cattonum:::FUN(X[[i]], ...)
   11.       └─stats::ave(.x, .grouping, FUN = .f)
   12.         └─base::lapply(split(x, g), FUN)
   13.           └─base::match.fun(FUN)
  
  [ FAIL 9 | WARN 0 | SKIP 4 | PASS 214 ]
  Error: Test failures
  Execution halted