Running 'testthat.R' [97s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(DeclareDesign)
  Loading required package: randomizr
  Loading required package: fabricatr
  Loading required package: estimatr
  > 
  > test_check("DeclareDesign")
  -- 1. Error: a dplyr pipeline can be used in a design (@test-allow-custom-functi
  object 'tibble_update_attrs' not found
  Backtrace:
   1. DeclareDesign::draw_data(des)
   2. DeclareDesign:::get_function_internal(...)
   3. DeclareDesign:::run_design_internal.design(...)
   4. DeclareDesign:::next_step(step, current_df, i)
   5. base::tryCatch(...)
   6. base:::tryCatchList(expr, classes, parentenv, handlers)
   7. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8. value[[3L]](cond)
  
  -- 2. Error: dplyr functions can be handlers (@test-allow-custom-functions.R#43)
  object 'tibble_update_attrs' not found
  Backtrace:
   1. DeclareDesign::draw_data(design2)
   2. DeclareDesign:::get_function_internal(...)
   3. DeclareDesign:::run_design_internal.design(...)
   4. DeclareDesign:::next_step(step, current_df, i)
   5. base::tryCatch(...)
   6. base:::tryCatchList(expr, classes, parentenv, handlers)
   7. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8. value[[3L]](cond)
  
  -- 3. Error: tibble (@test-alternative-df-compatibility.R#20)  -----------------
  object 'tibble_update_attrs' not found
  Backtrace:
   1. dplyr::tibble(y = rnorm(5), x = rnorm(5))
   2. tibble:::tibble_quos(xs[!is_null], .rows, .name_repair)
   3. tibble::new_tibble(output, nrow = first_size %||% 0L)
   4. tibble:::update_tibble_attrs(x, ...)
  
  -- 4. Error: tibble more (@test-alternative-df-compatibility.R#46)  ------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. testthat::expect_s3_class(draw_data(design), "tbl_df")
    4. DeclareDesign::draw_data(design)
    5. DeclareDesign:::get_function_internal(...)
    6. DeclareDesign:::run_design_internal.design(...)
    7. DeclareDesign:::next_step(step, current_df, i)
    8. base::tryCatch(...)
    9. base:::tryCatchList(expr, classes, parentenv, handlers)
   10. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11. value[[3L]](cond)
  
  -- 5. Error: test the full declare design setup (@test-declare-design.R#33)  ---
  object 'tibble_update_attrs' not found
  Backtrace:
   1. DeclareDesign::draw_data(design)
   2. DeclareDesign:::get_function_internal(...)
   3. DeclareDesign:::run_design_internal.design(...)
   4. DeclareDesign:::next_step(step, current_df, i)
   5. base::tryCatch(...)
   6. base:::tryCatchList(expr, classes, parentenv, handlers)
   7. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8. value[[3L]](cond)
  
  -- 6. Error: demo runs (@test-demo.R#119)  -------------------------------------
  object 'tibble_update_attrs' not found
  Backtrace:
   1. DeclareDesign::draw_data(design)
   2. DeclareDesign:::get_function_internal(...)
   3. DeclareDesign:::run_design_internal.design(...)
   4. DeclareDesign:::next_step(step, current_df, i)
   5. base::tryCatch(...)
   6. base:::tryCatchList(expr, classes, parentenv, handlers)
   7. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8. value[[3L]](cond)
  
  -- 7. Error: Basic design summary (@test-design-summary.R#27)  -----------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. base::summary(design)
    5. (FUN)(data = data, ...f = dplyr::mutate, q = 5)
    7. dplyr:::mutate.data.frame(data, ...)
   10. dplyr::tbl_df(.data)
   12. tibble:::as_tibble.data.frame(data, .name_repair = "check_unique")
   13. tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   14. tibble:::recycle_columns(x, .rows, lengths)
   15. tibble::new_tibble(x, nrow = nrow, subclass = NULL)
   16. tibble:::update_tibble_attrs(x, ...)
  
  -- 8. Error: allow design functions to be sent to simulate design and diagnose_d
  object 'tibble_update_attrs' not found
  Backtrace:
    1. DeclareDesign::run_design(my_design_function)
    3. DeclareDesign:::run_design_internal.function(design)
    4. DeclareDesign:::design()
    5. DeclareDesign::run_design(design)
    7. DeclareDesign:::run_design_internal.design(design)
    8. DeclareDesign:::next_step(step, current_df, i)
    9. base::tryCatch(...)
   10. base:::tryCatchList(expr, classes, parentenv, handlers)
   11. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12. value[[3L]](cond)
  
  -- 9. Error: default diagnosands work (@test-diagnose-design.R#114)  -----------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. DeclareDesign::diagnose_design(...)
    2. DeclareDesign::simulate_design(!!!dots, sims = sims)
    3. base::mapply(...)
    5. DeclareDesign:::future_lapply(...)
    6. future.apply::future_lapply(..., future.seed = future.seed, future.globals = future.globals)
    7. future.apply:::future_xapply(...)
    9. future:::values.list(fs)
   11. future:::resolve.list(...)
   12. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   13. future:::signalConditions(...)
  
  -- 10. Error: Factorial (@test-factorial.R#36)  --------------------------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. testthat::expect_equal(...)
    9. DeclareDesign::draw_data(.)
   12. DeclareDesign:::get_function_internal(...)
   13. DeclareDesign:::run_design_internal.design(...)
   14. DeclareDesign:::next_step(step, current_df, i)
   15. base::tryCatch(...)
   16. base:::tryCatchList(expr, classes, parentenv, handlers)
   17. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   18. value[[3L]](cond)
  
  -- 11. Error: AER (@test-model.R#205)  -----------------------------------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. testthat::expect_equal(ncol(draw_estimates(des)), 8)
    5. DeclareDesign::draw_estimates(des)
    6. DeclareDesign:::apply_on_design_dots(...)
    7. base::lapply(designs, FUN)
    8. DeclareDesign:::FUN(X[[i]], ...)
    9. DeclareDesign:::get_function_internal(...)
   10. DeclareDesign:::run_design_internal.design(...)
   11. DeclareDesign:::next_step(step, current_df, i)
   12. base::tryCatch(...)
   13. base:::tryCatchList(expr, classes, parentenv, handlers)
   14. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   15. value[[3L]](cond)
  
  -- 12. Error: lm (@test-model.R#210)  ------------------------------------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. testthat::expect_equal(ncol(draw_estimates(des)), 8)
    5. DeclareDesign::draw_estimates(des)
    6. DeclareDesign:::apply_on_design_dots(...)
    7. base::lapply(designs, FUN)
    8. DeclareDesign:::FUN(X[[i]], ...)
    9. DeclareDesign:::get_function_internal(...)
   10. DeclareDesign:::run_design_internal.design(...)
   11. DeclareDesign:::next_step(step, current_df, i)
   12. base::tryCatch(...)
   13. base:::tryCatchList(expr, classes, parentenv, handlers)
   14. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   15. value[[3L]](cond)
  
  -- 13. Error: glm (@test-model.R#215)  -----------------------------------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. testthat::expect_equal(ncol(draw_estimates(des)), 8)
    5. DeclareDesign::draw_estimates(des)
    6. DeclareDesign:::apply_on_design_dots(...)
    7. base::lapply(designs, FUN)
    8. DeclareDesign:::FUN(X[[i]], ...)
    9. DeclareDesign:::get_function_internal(...)
   10. DeclareDesign:::run_design_internal.design(...)
   11. DeclareDesign:::next_step(step, current_df, i)
   12. base::tryCatch(...)
   13. base:::tryCatchList(expr, classes, parentenv, handlers)
   14. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   15. value[[3L]](cond)
  
  -- 14. Error: betareg (@test-model.R#227)  -------------------------------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. testthat::expect_equal(ncol(draw_estimates(des)), 9)
    5. DeclareDesign::draw_estimates(des)
    6. DeclareDesign:::apply_on_design_dots(...)
    7. base::lapply(designs, FUN)
    8. DeclareDesign:::FUN(X[[i]], ...)
    9. DeclareDesign:::get_function_internal(...)
   10. DeclareDesign:::run_design_internal.design(...)
   11. DeclareDesign:::next_step(step, current_df, i)
   12. base::tryCatch(...)
   13. base:::tryCatchList(expr, classes, parentenv, handlers)
   14. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   15. value[[3L]](cond)
  
  -- 15. Error: biglm (@test-model.R#237)  ---------------------------------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. testthat::expect_equal(ncol(draw_estimates(des)), 7)
    5. DeclareDesign::draw_estimates(des)
    6. DeclareDesign:::apply_on_design_dots(...)
    7. base::lapply(designs, FUN)
    8. DeclareDesign:::FUN(X[[i]], ...)
    9. DeclareDesign:::get_function_internal(...)
   10. DeclareDesign:::run_design_internal.design(...)
   11. DeclareDesign:::next_step(step, current_df, i)
   12. base::tryCatch(...)
   13. base:::tryCatchList(expr, classes, parentenv, handlers)
   14. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   15. value[[3L]](cond)
  
  -- 16. Error: gam (@test-model.R#249)  -----------------------------------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. testthat::expect_equal(ncol(draw_estimates(des)), 7)
    5. DeclareDesign::draw_estimates(des)
    6. DeclareDesign:::apply_on_design_dots(...)
    7. base::lapply(designs, FUN)
    8. DeclareDesign:::FUN(X[[i]], ...)
    9. DeclareDesign:::get_function_internal(...)
   10. DeclareDesign:::run_design_internal.design(...)
   11. DeclareDesign:::next_step(step, current_df, i)
   12. base::tryCatch(...)
   13. base:::tryCatchList(expr, classes, parentenv, handlers)
   14. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   15. value[[3L]](cond)
  
  -- 17. Error: lfe (@test-model.R#258)  -----------------------------------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. testthat::expect_equal(ncol(draw_estimates(des)), 8)
    5. DeclareDesign::draw_estimates(des)
    6. DeclareDesign:::apply_on_design_dots(...)
    7. base::lapply(designs, FUN)
    8. DeclareDesign:::FUN(X[[i]], ...)
    9. DeclareDesign:::get_function_internal(...)
   10. DeclareDesign:::run_design_internal.design(...)
   11. DeclareDesign:::next_step(step, current_df, i)
   12. base::tryCatch(...)
   13. base:::tryCatchList(expr, classes, parentenv, handlers)
   14. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   15. value[[3L]](cond)
  
  -- 18. Error: Multiple Coefficients (@test-multiple-coefficients.R#28)  --------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. DeclareDesign::diagnose_design(my_design, sims = 2, bootstrap_sims = FALSE)
    2. DeclareDesign::simulate_design(!!!dots, sims = sims)
    3. base::mapply(...)
    5. DeclareDesign:::future_lapply(...)
    6. future.apply::future_lapply(..., future.seed = future.seed, future.globals = future.globals)
    7. future.apply:::future_xapply(...)
    9. future:::values.list(fs)
   11. future:::resolve.list(...)
   12. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   13. future:::signalConditions(...)
  
  -- 19. Error: reshape works (@test-reshape-diagnosis.R#30)  --------------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. DeclareDesign::diagnose_design(design, sims = 10, bootstrap_sims = 5)
    2. DeclareDesign::simulate_design(!!!dots, sims = sims)
    3. base::mapply(...)
    5. DeclareDesign:::future_lapply(...)
    6. future.apply::future_lapply(..., future.seed = future.seed, future.globals = future.globals)
    7. future.apply:::future_xapply(...)
    9. future:::values.list(fs)
   11. future:::resolve.list(...)
   12. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   13. future:::signalConditions(...)
  
  -- 20. Error: select (@test-reshape-diagnosis.R#77)  ---------------------------
  object 'tibble_update_attrs' not found
  Backtrace:
    1. DeclareDesign::diagnose_design(design, sims = 10, bootstrap_sims = 5)
    2. DeclareDesign::simulate_design(!!!dots, sims = sims)
    3. base::mapply(...)
    5. DeclareDesign:::future_lapply(...)
    6. future.apply::future_lapply(..., future.seed = future.seed, future.globals = future.globals)
    7. future.apply:::future_xapply(...)
    9. future:::values.list(fs)
   11. future:::resolve.list(...)
   12. future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   13. future:::signalConditions(...)
  
  == testthat results  ===========================================================
  [ OK: 456 | SKIPPED: 5 | WARNINGS: 0 | FAILED: 20 ]
  1. Error: a dplyr pipeline can be used in a design (@test-allow-custom-functions.R#26) 
  2. Error: dplyr functions can be handlers (@test-allow-custom-functions.R#43) 
  3. Error: tibble (@test-alternative-df-compatibility.R#20) 
  4. Error: tibble more (@test-alternative-df-compatibility.R#46) 
  5. Error: test the full declare design setup (@test-declare-design.R#33) 
  6. Error: demo runs (@test-demo.R#119) 
  7. Error: Basic design summary (@test-design-summary.R#27) 
  8. Error: allow design functions to be sent to simulate design and diagnose_design (@test-diagnose-design.R#34) 
  9. Error: default diagnosands work (@test-diagnose-design.R#114) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted