Running ‘testthat.R’ [13s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rainette)
  
  Attaching package: 'rainette'
  
  The following object is masked from 'package:stats':
  
      cutree
  
  > 
  > test_check("rainette")
  ── 1. Error: rainette2_complete_groups (@test_cutree.R#28)  ────────────────────
  'where' must be an environment
  Backtrace:
    1. rainette::rainette2(res1, res2, min_members = 2)
    4. rainette:::classes_crosstab(groups1, groups2, n_tot)
    5. purrr::imap_dfr(...)
    6. purrr::map2_dfr(.x, vec_index(.x), .f, ..., .id = .id)
    7. purrr::map2(.x, .y, .f, ...)
    8. rainette:::.f(.x[[i]], .y[[i]], ...)
    9. purrr::imap_dfr(...)
   10. purrr::map2_dfr(.x, vec_index(.x), .f, ..., .id = .id)
   11. purrr::map2(.x, .y, .f, ...)
   12. rainette:::.f(.x[[i]], .y[[i]], ...)
   11. dplyr::count(., g1, g2)
   18. tidyr::complete(., g1, g2, fill = list(n = 0))
   22. tidyr::replace_na(full, replace = fill)
   23. ellipsis::check_dots_used()
   25. ellipsis:::exit_handler(action)
   26. base::bquote(...)
  
  ── 2. Error: (unknown) (@test_rainette2.R#12)  ─────────────────────────────────
  'where' must be an environment
  Backtrace:
    1. rainette::rainette2(...)
    4. rainette:::classes_crosstab(groups1, groups2, n_tot)
    5. purrr::imap_dfr(...)
    6. purrr::map2_dfr(.x, vec_index(.x), .f, ..., .id = .id)
    7. purrr::map2(.x, .y, .f, ...)
    8. rainette:::.f(.x[[i]], .y[[i]], ...)
    9. purrr::imap_dfr(...)
   10. purrr::map2_dfr(.x, vec_index(.x), .f, ..., .id = .id)
   11. purrr::map2(.x, .y, .f, ...)
   12. rainette:::.f(.x[[i]], .y[[i]], ...)
   11. dplyr::count(., g1, g2)
   18. tidyr::complete(., g1, g2, fill = list(n = 0))
   22. tidyr::replace_na(full, replace = fill)
   23. ellipsis::check_dots_used()
   25. ellipsis:::exit_handler(action)
   26. base::bquote(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 106 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: rainette2_complete_groups (@test_cutree.R#28) 
  2. Error: (unknown) (@test_rainette2.R#12) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In for (i in seq_along(feat_cc)) { :
    closing unused connection 4 (doesnt/exist.txtt)
  Execution halted