Running 'testthat.R' [61s/67s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(egor)
  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
  
  Loading required package: tibble
  > library(dplyr)
  > 
  > test_check("egor")
  Sorting data by egoID: Transforming alters data to long format: Transforming wide dyad data to edgelist: Filtering out empty alter entries using provided network size values: Sorting data by egoID: Transforming alters data to long format: Transforming wide dyad data to edgelist: Filtering out empty alter entries using provided network size values: Sorting data by egoID: Transforming alters data to long format: Transforming wide dyad data to edgelist: Sorting data by egoID: Transforming alters data to long format: Transforming wide dyad data to edgelist: Filtering out empty alter entries using provided network size values: Sorting data by egoID: Transforming alters data to long format: Transforming wide dyad data to edgelist: -- 1. Failure: Composition commands work. (@test_composition.R#11)  ------------
  comp_ei threw an error.
  Message: 'where' must be an environment
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(comp_ei(e, "sex", "sex"), NA, label = "comp_ei")
    6. egor::comp_ei(e, "sex", "sex")
    7. egor::comp_ply(object, alt.attr, .f = fun_comp_ei, ego.attr = ego.attr)
    8. purrr::map2_dbl(...)
    9. egor:::.f(.x[[i]], .y[[i]], ...)
    6. dplyr::pull(x, !!alt.attr_enquo)
   14. egor:::.f(., y, ...)
    8. tibble::tibble(homogen)
    8. dplyr::mutate(...)
    8. dplyr::count(., homogen)
   15. tidyr::complete(., homogen, fill = list(n = 0))
   30. tidyr::replace_na(full, replace = fill)
   31. ellipsis::check_dots_used()
   33. ellipsis:::exit_handler(action)
   34. base::bquote(...)
  
  -- 2. Failure: Composition commands work. (@test_composition.R#17)  ------------
  comp_ply fun_comp_ei threw an error.
  Message: 'where' must be an environment
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    6. egor::comp_ply(e, "age", .f = egor:::fun_comp_ei, ego.attr = "age")
    7. purrr::map2_dbl(...)
    8. egor:::.f(.x[[i]], .y[[i]], ...)
    5. dplyr::pull(x, !!alt.attr_enquo)
   13. egor:::.f(., y, ...)
    7. tibble::tibble(homogen)
    7. dplyr::mutate(...)
    7. dplyr::count(., homogen)
   14. tidyr::complete(., homogen, fill = list(n = 0))
   29. tidyr::replace_na(full, replace = fill)
   30. ellipsis::check_dots_used()
   32. ellipsis:::exit_handler(action)
   33. base::bquote(...)
  
  3 Egos/ Ego Networks 
  47 Alters 
  Min. Netsize 10 
  Average Netsize 15.6666666666667 
  Max. Netsize 20 
  Average Density 0.504119367045064 
  
  Ego sampling design:
    NULL
  Alter survey design:
    Maximum nominations: 
  6 Egos/ Ego Networks 
  43 Alters 
  Min. Netsize 5 
  Average Netsize 7.16666666666667 
  Max. Netsize 10 
  Average Density 0.538095238095238 
  
  Ego sampling design:
    NULL
  Alter survey design:
    Maximum nominations: 
  5 Egos/ Ego Networks 
  12 Alters 
  Min. Netsize 4 
  Average Netsize 4 
  Max. Netsize 4 
  Average Density 1.77777777777778 
  
  Ego sampling design:
    NULL
  Alter survey design:
    Maximum nominations: 
  5 Egos/ Ego Networks 
  12 Alters 
  Min. Netsize 4 
  Average Netsize 4 
  Max. Netsize 4 
  Average Density 1.77777777777778 
  
  Ego sampling design:
    NULL
  Alter survey design:
    Maximum nominations: 
  3 Egos/ Ego Networks 
  12 Alters 
  Min. Netsize 4 
  Average Netsize 4 
  Max. Netsize 4 
  Average Density 1.83333333333333 
  
  Ego sampling design:
    NULL
  Alter survey design:
    Maximum nominations: 
  4 Egos/ Ego Networks 
  16 Alters 
  Min. Netsize 4 
  Average Netsize 4 
  Max. Netsize 4 
  Average Density 1.33333333333333 
  
  Ego sampling design:
    NULL
  Alter survey design:
    Maximum nominations: 
  -- 3. Failure: EI() works. (@test_ei.R#7)  -------------------------------------
  regular threw an error.
  Message: 'where' must be an environment
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
   17. purrr::map2(...)
   18. egor:::.f(.x[[i]], .y[[i]], ...)
   22. purrr::map(...)
   23. egor:::.f(.x[[i]], ...)
   24. egor:::calc_grp_ei_tab(x, z)
    7. dplyr::filter(., fact.x == fact | fact.y == fact)
    7. dplyr::count(., homogen)
   14. tidyr::complete(., homogen)
   34. tidyr::replace_na(full, replace = fill)
   35. ellipsis::check_dots_used()
   37. ellipsis:::exit_handler(action)
   38. base::bquote(...)
  
  -- 4. Failure: EI() works. (@test_ei.R#8)  -------------------------------------
  regular 2 threw an error.
  Message: 'where' must be an environment
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(EI(eigor, alt.attr = "sex"), NA, label = "regular 2")
   17. purrr::map2(...)
   18. egor:::.f(.x[[i]], .y[[i]], ...)
   22. purrr::map(...)
   23. egor:::.f(.x[[i]], ...)
   24. egor:::calc_grp_ei_tab(x, z)
    7. dplyr::filter(., fact.x == fact | fact.y == fact)
    7. dplyr::count(., homogen)
   14. tidyr::complete(., homogen)
   34. tidyr::replace_na(full, replace = fill)
   35. ellipsis::check_dots_used()
   37. ellipsis:::exit_handler(action)
   38. base::bquote(...)
  
  -- 5. Failure: EI() works. (@test_ei.R#9)  -------------------------------------
  NSE input. threw an error.
  Message: 'where' must be an environment
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(EI(eigor, alt.attr = sex), NA, label = "NSE input.")
   17. purrr::map2(...)
   18. egor:::.f(.x[[i]], .y[[i]], ...)
   22. purrr::map(...)
   23. egor:::.f(.x[[i]], ...)
   24. egor:::calc_grp_ei_tab(x, z)
    7. dplyr::filter(., fact.x == fact | fact.y == fact)
    7. dplyr::count(., homogen)
   14. tidyr::complete(., homogen)
   34. tidyr::replace_na(full, replace = fill)
   35. ellipsis::check_dots_used()
   37. ellipsis:::exit_handler(action)
   38. base::bquote(...)
  
  -- 6. Failure: EI() works. (@test_ei.R#14)  ------------------------------------
  `EI(eigor, alt.attr = "int_var")` threw an error.
  Message: 'where' must be an environment
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(EI(eigor, alt.attr = "int_var"), NA, "non-factor variable")
   17. purrr::map2(...)
   18. egor:::.f(.x[[i]], .y[[i]], ...)
   22. purrr::map(...)
   23. egor:::.f(.x[[i]], ...)
   24. egor:::calc_grp_ei_tab(x, z)
    7. dplyr::filter(., fact.x == fact | fact.y == fact)
    7. dplyr::count(., homogen)
   14. tidyr::complete(., homogen)
   34. tidyr::replace_na(full, replace = fill)
   35. ellipsis::check_dots_used()
   37. ellipsis:::exit_handler(action)
   38. base::bquote(...)
  
  -- 7. Failure: EI() works. (@test_ei.R#41)  ------------------------------------
  Missing aaties. threw an error.
  Message: 'where' must be an environment
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
   17. purrr::map2(...)
   18. egor:::.f(.x[[i]], .y[[i]], ...)
   22. purrr::map(...)
   23. egor:::.f(.x[[i]], ...)
   24. egor:::calc_grp_ei_tab(x, z)
    7. dplyr::filter(., fact.x == fact | fact.y == fact)
    7. dplyr::count(., homogen)
   14. tidyr::complete(., homogen)
   34. tidyr::replace_na(full, replace = fill)
   35. ellipsis::check_dots_used()
   37. ellipsis:::exit_handler(action)
   38. base::bquote(...)
  
  -- 8. Failure: EI() works. (@test_ei.R#67)  ------------------------------------
  Missing aaties. threw an error.
  Message: 'where' must be an environment
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
   17. purrr::map2(...)
   18. egor:::.f(.x[[i]], .y[[i]], ...)
   22. purrr::map(...)
   23. egor:::.f(.x[[i]], ...)
   24. egor:::calc_grp_ei_tab(x, z)
    7. dplyr::filter(., fact.x == fact | fact.y == fact)
    7. dplyr::count(., homogen)
   14. tidyr::complete(., homogen)
   34. tidyr::replace_na(full, replace = fill)
   35. ellipsis::check_dots_used()
   37. ellipsis:::exit_handler(action)
   38. base::bquote(...)
  
  -- 9. Error: comp_ei handles extreme values (only one group in alts) correctly (
  'where' must be an environment
  Backtrace:
    1. testthat::expect_true(...)
    4. egor::comp_ei(object = egor32, alt.attr = "sex", ego.attr = "sex")
    5. egor::comp_ply(object, alt.attr, .f = fun_comp_ei, ego.attr = ego.attr)
    6. purrr::map2_dbl(...)
    7. egor:::.f(.x[[i]], .y[[i]], ...)
    6. dplyr::pull(x, !!alt.attr_enquo)
   14. egor:::.f(., y, ...)
    8. tibble::tibble(homogen)
    8. dplyr::mutate(...)
    8. dplyr::count(., homogen)
   15. tidyr::complete(., homogen, fill = list(n = 0))
   28. tidyr::replace_na(full, replace = fill)
   29. ellipsis::check_dots_used()
   31. ellipsis:::exit_handler(action)
   32. base::bquote(...)
  
  -- 10. Error: comp_ei handles character vectors correctly (@test_ei.R#111)  ----
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(...)
    4. egor::comp_ei(e1, "sex", ego.attr = "sex")
    5. egor::comp_ply(object, alt.attr, .f = fun_comp_ei, ego.attr = ego.attr)
    6. purrr::map2_dbl(...)
    7. egor:::.f(.x[[i]], .y[[i]], ...)
    6. dplyr::pull(x, !!alt.attr_enquo)
   14. egor:::.f(., y, ...)
    8. tibble::tibble(homogen)
    8. dplyr::mutate(...)
    8. dplyr::count(., homogen)
   15. tidyr::complete(., homogen, fill = list(n = 0))
   28. tidyr::replace_na(full, replace = fill)
   29. ellipsis::check_dots_used()
   31. ellipsis:::exit_handler(action)
   32. base::bquote(...)
  
  Sorting data by egoID: Transforming alters data to long format: Transforming wide dyad data to edgelist: Filtering out empty alter entries using provided network size values: == testthat results  ===========================================================
  [ OK: 106 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 10 ]
  1.  Failure: Composition commands work. (@test_composition.R#11) 
  2.  Failure: Composition commands work. (@test_composition.R#17) 
  3.  Failure: EI() works. (@test_ei.R#7) 
  4.  Failure: EI() works. (@test_ei.R#8) 
  5.  Failure: EI() works. (@test_ei.R#9) 
  6.  Failure: EI() works. (@test_ei.R#14) 
  7.  Failure: EI() works. (@test_ei.R#41) 
  8.  Failure: EI() works. (@test_ei.R#67) 
  9.  Error: comp_ei handles extreme values (only one group in alts) correctly (@test_ei.R#95) 
  10. Error: comp_ei handles character vectors correctly (@test_ei.R#111) 
  
  Error: testthat unit tests failed
  Execution halted