Running 'testthat.R' [135s/154s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This is necessary because some tests fail otherwise; see https://github.com/hadley/testthat/issues/144
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(tidybayes)
  > 
  > test_check("tidybayes")
  -- 1. Error: compare_levels respects groups of input data frame (@test.compare_l
  'where' must be an environment
  Backtrace:
    8. tidybayes::spread_draws(., b[i, j])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   11. tidybayes:::spread_draws_(...)
   12. tidybayes:::spread_draws_long_(...)
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  -- 2. Error: regular expressions for parameter names work on indexed parameters 
  'where' must be an environment
  Backtrace:
    8. tidybayes::spread_draws(., c(tau, u_tau)[i])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   11. tidybayes:::spread_draws_(...)
   12. tidybayes:::spread_draws_long_(...)
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  -- 3. Error: gather_draws works on a combination of 0 and 1-dimensional values (
  'where' must be an environment
  Backtrace:
    8. tidybayes::spread_draws(., tau[i], typical_r)
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   11. tidybayes:::spread_draws_(...)
   12. tidybayes:::spread_draws_long_(...)
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  -- 4. Error: gather_variables works on the results of spread_draws with multiple
  'where' must be an environment
  Backtrace:
    8. tidybayes::spread_draws(., b[i, v], tau[i])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   11. tidybayes:::spread_draws_(...)
   12. tidybayes:::spread_draws_long_(...)
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  -- 5. Error: (unknown) (@test.geom_interval.R#15)  -----------------------------
  'where' must be an environment
  Backtrace:
    8. tidybayes::spread_draws(., u_tau[i])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   11. tidybayes:::spread_draws_(...)
   12. tidybayes:::spread_draws_long_(...)
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  -- 6. Error: (unknown) (@test.geom_pointinterval.R#14)  ------------------------
  'where' must be an environment
  Backtrace:
    8. tidybayes::spread_draws(., u_tau[i])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   11. tidybayes:::spread_draws_(...)
   12. tidybayes:::spread_draws_long_(...)
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  -- 7. Error: spread_draws works on a variable with one unnamed index  ----------
  'where' must be an environment
  Backtrace:
    1. tidybayes::spread_draws(RankCorr_s, tau[i])
    2. base::lapply(...)
    3. tidybayes:::FUN(X[[i]], ...)
    4. tidybayes:::spread_draws_(...)
    5. tidybayes:::spread_draws_long_(...)
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 8. Error: spread_draws works on a variable with one named index  ------------
  'where' must be an environment
  Backtrace:
    1. tidybayes::spread_draws(RankCorr_i, tau[i])
    2. base::lapply(...)
    3. tidybayes:::FUN(X[[i]], ...)
    4. tidybayes:::spread_draws_(...)
    5. tidybayes:::spread_draws_long_(...)
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 9. Error: spread_draws works on a variable with one anonymous wide index (@te
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(spread_draws(RankCorr_s, tau[..]), ref)
    4. tidybayes::spread_draws(RankCorr_s, tau[..])
    5. base::lapply(...)
    6. tidybayes:::FUN(X[[i]], ...)
    7. tidybayes:::spread_draws_(...)
    8. tidybayes:::spread_draws_long_(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  -- 10. Error: spread_draws works on a variable with one named wide index (@test.
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(...)
    4. tidybayes::spread_draws(RankCorr_i, tau[i] | i)
    5. base::lapply(...)
    6. tidybayes:::FUN(X[[i]], ...)
    7. tidybayes:::spread_draws_(...)
    8. tidybayes:::spread_draws_long_(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  -- 11. Error: spread_draws works on a variable with two named dimensions  ------
  'where' must be an environment
  Backtrace:
    1. tidybayes::spread_draws(RankCorr_ij, b[i, j])
    2. base::lapply(...)
    3. tidybayes:::FUN(X[[i]], ...)
    4. tidybayes:::spread_draws_(...)
    5. tidybayes:::spread_draws_long_(...)
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 12. Error: spread_draws works on a variable with two named dimensions, one th
  'where' must be an environment
  Backtrace:
    1. tidybayes::spread_draws(RankCorr_ij, b[i, j] | j)
    2. base::lapply(...)
    3. tidybayes:::FUN(X[[i]], ...)
    4. tidybayes:::spread_draws_(...)
    5. tidybayes:::spread_draws_long_(...)
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 13. Error: spread_draws works on a variable with one named index and one wide
  'where' must be an environment
  Backtrace:
    1. tidybayes::spread_draws(RankCorr_i, b[i, ..])
    2. base::lapply(...)
    3. tidybayes:::FUN(X[[i]], ...)
    4. tidybayes:::spread_draws_(...)
    5. tidybayes:::spread_draws_long_(...)
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 14. Failure: spread_draws does not allow extraction of two variables simultan
  `spread_draws(RankCorr_s, c(tau, u_tau)[..])` threw an error with unexpected message.
  Expected match: "Cannot extract draws from multiple variables in wide format."
  Actual message: "'where' must be an environment"
  Backtrace:
    1. testthat::expect_error(...)
    6. tidybayes::spread_draws(RankCorr_s, c(tau, u_tau)[..])
    7. base::lapply(...)
    8. tidybayes:::FUN(X[[i]], ...)
    9. tidybayes:::spread_draws_(...)
   10. tidybayes:::spread_draws_long_(...)
   11. tidyr::separate(...)
   12. ellipsis::check_dots_used()
   14. ellipsis:::exit_handler(action)
   15. base::bquote(...)
  
  -- 15. Failure: spread_draws does not allow extraction of two variables simultan
  `spread_draws(RankCorr_s, c(tau, u_tau)[i] | i)` threw an error with unexpected message.
  Expected match: "Cannot extract draws from multiple variables in wide format."
  Actual message: "'where' must be an environment"
  Backtrace:
    1. testthat::expect_error(...)
    6. tidybayes::spread_draws(RankCorr_s, c(tau, u_tau)[i] | i)
    7. base::lapply(...)
    8. tidybayes:::FUN(X[[i]], ...)
    9. tidybayes:::spread_draws_(...)
   10. tidybayes:::spread_draws_long_(...)
   11. tidyr::separate(...)
   12. ellipsis::check_dots_used()
   14. ellipsis:::exit_handler(action)
   15. base::bquote(...)
  
  -- 16. Error: spread_draws correctly extracts multiple variables simultaneously 
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(...)
    4. tidybayes::spread_draws(RankCorr_i, c(tau, u_tau)[i])
    5. base::lapply(...)
    6. tidybayes:::FUN(X[[i]], ...)
    7. tidybayes:::spread_draws_(...)
    8. tidybayes:::spread_draws_long_(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  -- 17. Error: spread_draws multispec syntax joins results correctly (@test.sprea
  'where' must be an environment
  Backtrace:
    1. tidybayes::spread_draws(RankCorr_s, typical_r)
    8. dplyr::inner_join(...)
   16. base::lapply(...)
   17. tidybayes:::FUN(X[[i]], ...)
   18. tidybayes:::spread_draws_(...)
   19. tidybayes:::spread_draws_long_(...)
   20. tidyr::separate(...)
   21. ellipsis::check_dots_used()
   23. ellipsis:::exit_handler(action)
   24. base::bquote(...)
  
  -- 18. Error: spread_draws multispec with different dimensions retains grouping 
  'where' must be an environment
  Backtrace:
    8. tidybayes::spread_draws(., typical_r, tau[i], b[i, j])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   11. tidybayes:::spread_draws_(...)
   12. tidybayes:::spread_draws_long_(...)
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  -- 19. Error: groups from spread_draws retain factor level names (@test.spread_d
  'where' must be an environment
  Backtrace:
    9. tidybayes::spread_draws(., tau[i])
   10. base::lapply(...)
   11. tidybayes:::FUN(X[[i]], ...)
   12. tidybayes:::spread_draws_(...)
   13. tidybayes:::spread_draws_long_(...)
   14. tidyr::separate(...)
   15. ellipsis::check_dots_used()
   17. ellipsis:::exit_handler(action)
   18. base::bquote(...)
  
  -- 20. Error: empty dimensions are dropped (@test.spread_draws.R#265)  ---------
  'where' must be an environment
  Backtrace:
    8. tidybayes::spread_draws(., tau[i])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   11. tidybayes:::spread_draws_(...)
   12. tidybayes:::spread_draws_long_(...)
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  -- 21. Error: dimensions with existing names as strings are made wide as strings
  'where' must be an environment
  Backtrace:
    8. tidybayes::spread_draws(., x[k])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   11. tidybayes:::spread_draws_(...)
   12. tidybayes:::spread_draws_long_(...)
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  -- 22. Error: regular expressions for variable names work on indexed variables (
  'where' must be an environment
  Backtrace:
    1. tidybayes::spread_draws(RankCorr_s, c(tau, u_tau)[i])
    2. base::lapply(...)
    3. tidybayes:::FUN(X[[i]], ...)
    4. tidybayes:::spread_draws_(...)
    5. tidybayes:::spread_draws_long_(...)
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 23. Error: nested matrices are correctly extracted (@test.spread_draws.R#364)
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(...)
   4. tidybayes:::spread_draws_long_(test_draws, "x", c("i", "."))
   5. tidyr::separate(...)
   6. ellipsis::check_dots_used()
   8. ellipsis:::exit_handler(action)
   9. base::bquote(...)
  
  -- 24. Error: nested 3d arrays are correctly extracted (@test.spread_draws.R#394
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(...)
   4. tidybayes:::spread_draws_long_(test_draws, "x", c(".", ".", "."))
   5. tidyr::separate(...)
   6. ellipsis::check_dots_used()
   8. ellipsis:::exit_handler(action)
   9. base::bquote(...)
  
  -- 25. Error: nested matrices with multiple variables are correctly extracted (@
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(...)
   4. tidybayes:::spread_draws_long_(...)
   5. tidyr::separate(...)
   6. ellipsis::check_dots_used()
   8. ellipsis:::exit_handler(action)
   9. base::bquote(...)
  
  -- 26. Error: nested matrices with named columns correctly extracted (@test.spre
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(...)
   4. tidybayes:::spread_draws_long_(test_draws, "x", c(".", "."))
   5. tidyr::separate(...)
   6. ellipsis::check_dots_used()
   8. ellipsis:::exit_handler(action)
   9. base::bquote(...)
  
  -- 27. Error: nested ragged arrays are correctly extracted (@test.spread_draws.R
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(...)
   4. tidybayes:::spread_draws_long_(test_draws, "x", c(".", "."))
   5. tidyr::separate(...)
   6. ellipsis::check_dots_used()
   8. ellipsis:::exit_handler(action)
   9. base::bquote(...)
  
  -- 28. Error: nested vectors are correctly extracted (@test.spread_draws.R#461) 
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(...)
   4. tidybayes:::spread_draws_long_(test_draws, "x", ".")
   5. tidyr::separate(...)
   6. ellipsis::check_dots_used()
   8. ellipsis:::exit_handler(action)
   9. base::bquote(...)
  
  -- 29. Error: nested arrays with string names are correctly extracted (@test.spr
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(...)
   4. tidybayes:::spread_draws_long_(test_draws, "x", ".")
   5. tidyr::separate(...)
   6. ellipsis::check_dots_used()
   8. ellipsis:::exit_handler(action)
   9. base::bquote(...)
  
  -- 30. Error: nested arrays with numeric indices that aren't 1:N are extracted p
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(...)
   4. tidybayes:::spread_draws_long_(test_draws, "x", ".")
   5. tidyr::separate(...)
   6. ellipsis::check_dots_used()
   8. ellipsis:::exit_handler(action)
   9. base::bquote(...)
  
  -- 31. Error: nested arrays with numeric indices that aren't 1:N are extracted p
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(...)
   4. tidybayes:::spread_draws_long_(test_draws, "x", ".")
   5. tidyr::separate(...)
   6. ellipsis::check_dots_used()
   8. ellipsis:::exit_handler(action)
   9. base::bquote(...)
  
  -- 32. Error: ungather_draws works on a simple parameter with no dimensions (@te
  'where' must be an environment
  Backtrace:
    8. tidybayes::gather_draws(., typical_r, b[i, j])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   13. tidybayes:::spread_draws_(...)
   14. tidybayes:::spread_draws_long_(...)
   15. tidyr::separate(...)
   16. ellipsis::check_dots_used()
   18. ellipsis:::exit_handler(action)
   19. base::bquote(...)
  
  -- 33. Error: ungather_draws works on multiple parameters with different dimensi
  'where' must be an environment
  Backtrace:
    8. tidybayes::gather_draws(., b[i, j], c(u_tau, tau)[i])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   13. tidybayes:::spread_draws_(...)
   14. tidybayes:::spread_draws_long_(...)
   15. tidyr::separate(...)
   16. ellipsis::check_dots_used()
   18. ellipsis:::exit_handler(action)
   19. base::bquote(...)
  
  -- 34. Error: ungather_draws(drop_indices = TRUE) drops draw indices (@test.unga
  'where' must be an environment
  Backtrace:
    8. tidybayes::gather_draws(., b[i, j], c(u_tau, tau)[i])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   13. tidybayes:::spread_draws_(...)
   14. tidybayes:::spread_draws_long_(...)
   15. tidyr::separate(...)
   16. ellipsis::check_dots_used()
   18. ellipsis:::exit_handler(action)
   19. base::bquote(...)
  
  -- 35. Error: unspread_draws works on a simple parameter with no dimensions (@te
  'where' must be an environment
  Backtrace:
    8. tidybayes::spread_draws(., typical_r, b[i, j])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   11. tidybayes:::spread_draws_(...)
   12. tidybayes:::spread_draws_long_(...)
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  -- 36. Error: unspread_draws works on a multiple parameters with different dimen
  'where' must be an environment
  Backtrace:
    8. tidybayes::spread_draws(., b[i, j], c(u_tau, tau)[i])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   11. tidybayes:::spread_draws_(...)
   12. tidybayes:::spread_draws_long_(...)
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  -- 37. Error: unspread_draws(drop_indices = TRUE) drops draw indices (@test.unsp
  'where' must be an environment
  Backtrace:
    8. tidybayes::spread_draws(., b[i, j], c(u_tau, tau)[i])
    9. base::lapply(...)
   10. tidybayes:::FUN(X[[i]], ...)
   11. tidybayes:::spread_draws_(...)
   12. tidybayes:::spread_draws_long_(...)
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  == testthat results  ===========================================================
  [ OK: 284 | SKIPPED: 108 | WARNINGS: 0 | FAILED: 37 ]
  1. Error: compare_levels respects groups of input data frame (@test.compare_levels.R#180) 
  2. Error: regular expressions for parameter names work on indexed parameters (@test.gather_draws.R#23) 
  3. Error: gather_draws works on a combination of 0 and 1-dimensional values (with correct groups) (@test.gather_draws.R#31) 
  4. Error: gather_variables works on the results of spread_draws with multiple variables and dimensions (@test.gather_variables.R#32) 
  5. Error: (unknown) (@test.geom_interval.R#15) 
  6. Error: (unknown) (@test.geom_pointinterval.R#14) 
  7. Error: spread_draws works on a variable with one unnamed index 
  8. Error: spread_draws works on a variable with one named index 
  9. Error: spread_draws works on a variable with one anonymous wide index (@test.spread_draws.R#132) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted