Running ‘testthat.R’ [10s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(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
  
  > library(lubridate)
  
  Attaching package: 'lubridate'
  
  The following objects are masked from 'package:dplyr':
  
      intersect, setdiff, union
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  > library(stringr)
  > library(correlationfunnel)
  ══ correlationfunnel Tip #2 ════════════════════════════════════════════════════
  Clean your NA's prior to using `binarize()`.
  Missing values and cleaning data are critical to getting great correlations. :)
  > 
  > test_check("correlationfunnel")
  ── 1. Error: Check for bad balance (@test-correlate.R#49)  ─────────────────────
  'where' must be an environment
  Backtrace:
    1. testthat::expect_warning(...)
   10. correlationfunnel::correlate(., target__1)
    3. stats::cor(., y = y, ...)
    3. tibble::as_tibble(., rownames = "feature")
    3. dplyr::rename(., correlation = V1)
   10. tidyr::separate(., feature, into = c("feature", "bin"), sep = "__")
   24. ellipsis::check_dots_used()
   26. ellipsis:::exit_handler(action)
   27. base::bquote(...)
  
  ── 2. Error: Check correlation (@test-correlate.R#58)  ─────────────────────────
  'where' must be an environment
  Backtrace:
    9. correlationfunnel::correlate(., TERM_DEPOSIT__yes)
    2. stats::cor(., y = y, ...)
    2. tibble::as_tibble(., rownames = "feature")
    2. dplyr::rename(., correlation = V1)
    9. tidyr::separate(., feature, into = c("feature", "bin"), sep = "__")
   19. ellipsis::check_dots_used()
   21. ellipsis:::exit_handler(action)
   22. base::bquote(...)
  
  ── 3. Error: (unknown) (@test-plot_correlation_funnel.R#16)  ───────────────────
  'where' must be an environment
  Backtrace:
    1. dplyr::select(., -ID)
    1. correlationfunnel::binarize(...)
    9. correlationfunnel::correlate(., TERM_DEPOSIT__yes)
    4. stats::cor(., y = y, ...)
    4. tibble::as_tibble(., rownames = "feature")
    4. dplyr::rename(., correlation = V1)
   11. tidyr::separate(., feature, into = c("feature", "bin"), sep = "__")
   19. ellipsis::check_dots_used()
   21. ellipsis:::exit_handler(action)
   22. base::bquote(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 14 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 3 ]
  1. Error: Check for bad balance (@test-correlate.R#49) 
  2. Error: Check correlation (@test-correlate.R#58) 
  3. Error: (unknown) (@test-plot_correlation_funnel.R#16) 
  
  Error: testthat unit tests failed
  Execution halted