Running ‘testthat.R’ [18s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(embed)
  Loading required package: recipes
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  
  Attaching package: 'recipes'
  
  The following object is masked from 'package:stats':
  
      step
  
  > 
  > test_check(package = "embed")
  ── 1. Error: (unknown) (@test_mixed.R#3)  ──────────────────────────────────────
  arguments imply differing number of rows: 3, 2
  Backtrace:
   1. base::source(testthat::test_path("make_example_data.R"))
   5. base::data.frame(...)
  
  ── 2. Error: (unknown) (@test_no_pooling.R#3)  ─────────────────────────────────
  arguments imply differing number of rows: 3, 2
  Backtrace:
   1. base::source(testthat::test_path("make_example_data.R"))
   5. base::data.frame(...)
  
  ── 3. Error: (unknown) (@test_pooling.R#3)  ────────────────────────────────────
  arguments imply differing number of rows: 3, 2
  Backtrace:
   1. base::source(testthat::test_path("make_example_data.R"))
   5. base::data.frame(...)
  
  ── 4. Error: (unknown) (@test_tf.R#3)  ─────────────────────────────────────────
  arguments imply differing number of rows: 3, 2
  Backtrace:
   1. base::source(testthat::test_path("make_example_data.R"))
   5. base::data.frame(...)
  
  ── 5. Error: woe_table returns a proper tibble (@test_woe.R#36)  ───────────────
  'outcome' must have exactly 2 categories (has 1)
  Backtrace:
   1. testthat::expect_equal(...)
   4. embed:::woe_table(df$x1, df$y)
  
  ── 6. Error: woe_table ruturns no messages nor warnings (@test_woe.R#52)  ──────
  'outcome' must have exactly 2 categories (has 1)
  Backtrace:
   1. testthat::expect_silent(embed:::woe_table(df$x1, df$y))
   9. embed:::woe_table(df$x1, df$y)
  
  ── 7. Error: dictionary returns a proper tibble  ───────────────────────────────
  'outcome' must have exactly 2 categories (has 1)
  Backtrace:
    1. embed::dictionary(df, y)
    2. dplyr::select(., ..., -!!outcome)
    9. purrr::map(., woe_table, outcome = outcome_vector, Laplace = Laplace)
   10. embed:::.f(.x[[i]], ...)
  
  ── 8. Error: dictionary accepts numeric, logical and character predictor variabl
  'outcome' must have exactly 2 categories (has 1)
  Backtrace:
    1. testthat::expect_equal(...)
    4. embed::dictionary(...)
    3. dplyr::select(., ..., -!!outcome)
   10. purrr::map(., woe_table, outcome = outcome_vector, Laplace = Laplace)
   13. embed:::.f(.x[[i]], ...)
  
  ── 9. Error: dictionary returns no messages nor warnings nor errors (@test_woe.R
  'outcome' must have exactly 2 categories (has 1)
  Backtrace:
    1. testthat::expect_silent(dictionary(df, y, x1))
    9. embed::dictionary(df, y, x1)
    3. dplyr::select(., ..., -!!outcome)
   10. purrr::map(., woe_table, outcome = outcome_vector, Laplace = Laplace)
   18. embed:::.f(.x[[i]], ...)
  
  ── 10. Error: add_woe returns a proper tibble  ─────────────────────────────────
  'outcome' must have exactly 2 categories (has 1)
  Backtrace:
    1. embed::add_woe(df, y)
    2. embed::dictionary(.data, !!outcome, ...)
    3. dplyr::select(., ..., -!!outcome)
   10. purrr::map(., woe_table, outcome = outcome_vector, Laplace = Laplace)
   11. embed:::.f(.x[[i]], ...)
  
  ── 11. Error: add_woe ruturns no messages nor warnings nor errors (@test_woe.R#9
  'outcome' must have exactly 2 categories (has 1)
  Backtrace:
    1. testthat::expect_silent(add_woe(df, y, x1))
    9. embed::add_woe(df, y, x1)
   10. embed::dictionary(.data, !!outcome, ...)
    4. dplyr::select(., ..., -!!outcome)
   11. purrr::map(., woe_table, outcome = outcome_vector, Laplace = Laplace)
   19. embed:::.f(.x[[i]], ...)
  
  ── 12. Error: add_woe accepts numeric, logical and character predictor variables
  'outcome' must have exactly 2 categories (has 1)
  Backtrace:
    1. embed::add_woe(...)
    2. embed::dictionary(.data, !!outcome, ...)
    3. dplyr::select(., ..., -!!outcome)
   10. purrr::map(., woe_table, outcome = outcome_vector, Laplace = Laplace)
   11. embed:::.f(.x[[i]], ...)
  
  ── 13. Error: add_woe returns woe only for those variables that exists in both d
  'outcome' must have exactly 2 categories (has 1)
  Backtrace:
    1. testthat::expect_equal(...)
    5. embed::dictionary(df, y, x1)
    3. dplyr::select(., ..., -!!outcome)
   10. purrr::map(., woe_table, outcome = outcome_vector, Laplace = Laplace)
   14. embed:::.f(.x[[i]], ...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 30 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 13 ]
  1. Error: (unknown) (@test_mixed.R#3) 
  2. Error: (unknown) (@test_no_pooling.R#3) 
  3. Error: (unknown) (@test_pooling.R#3) 
  4. Error: (unknown) (@test_tf.R#3) 
  5. Error: woe_table returns a proper tibble (@test_woe.R#36) 
  6. Error: woe_table ruturns no messages nor warnings (@test_woe.R#52) 
  7. Error: dictionary returns a proper tibble 
  8. Error: dictionary accepts numeric, logical and character predictor variables (@test_woe.R#71) 
  9. Error: dictionary returns no messages nor warnings nor errors (@test_woe.R#77) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted