Running 'testthat.R' [42s/49s]
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(powerlmm)
  > library(lme4)
  Loading required package: Matrix
  > 
  > test_check("powerlmm")
  == Failed tests ================================================================
  -- Error (tests.power.R:528:5): power partially nested -------------------------
  Error: invalid value 0 for 'digits' argument
  Backtrace:
       x
    1. +-testthat::expect_output(print(x), "n1 = 11") tests.power.R:528:4
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat:::.capture(...)
    4. |   | \-testthat::capture_output_lines(code, print, width = width)
    5. |   |   \-testthat:::eval_with_output(code, print = print, width = width)
    6. |   |     +-withr::with_output_sink(temp, withVisible(code))
    7. |   |     | \-base::force(code)
    8. |   |     \-base::withVisible(code)
    9. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. +-base::print(x)
   11. +-base::print(x)
   12. \-powerlmm:::print.plcp_power_3lvl(x)
   13.   \-powerlmm:::prepare_print_plcp_3lvl(.p$paras)
   14.     \-powerlmm:::prepare_print_plcp(x)
   15.       +-base::format(gd$control * 100, nsmall = 0, digits = 0, width = 2)
   16.       +-base::format(gd$control * 100, nsmall = 0, digits = 0, width = 2)
   17.       \-base::format.default(...)
   18.         \-base::prettyNum(...)
  -- Error (tests.setup_print.R:16:5): setup print -------------------------------
  Error: invalid value 0 for 'digits' argument
  Backtrace:
       x
    1. +-testthat::expect_output(str(print(p)), "Study setup \\(two-level\\)") tests.setup_print.R:16:4
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat:::.capture(...)
    4. |   | \-testthat::capture_output_lines(code, print, width = width)
    5. |   |   \-testthat:::eval_with_output(code, print = print, width = width)
    6. |   |     +-withr::with_output_sink(temp, withVisible(code))
    7. |   |     | \-base::force(code)
    8. |   |     \-base::withVisible(code)
    9. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. +-utils::str(print(p))
   11. +-base::print(p)
   12. +-base::print(p)
   13. \-powerlmm:::print.plcp_2lvl(p)
   14.   \-powerlmm:::prepare_print_plcp_2lvl(x)
   15.     \-powerlmm:::prepare_print_plcp(x, two_level = TRUE)
   16.       +-base::format(gd$control * 100, nsmall = 0, digits = 0, width = 2)
   17.       +-base::format(gd$control * 100, nsmall = 0, digits = 0, width = 2)
   18.       \-base::format.default(...)
   19.         \-base::prettyNum(...)
  -- Error (tests.setup_print.R:72:5): setup print -------------------------------
  Error: invalid value 0 for 'digits' argument
  Backtrace:
       x
    1. +-testthat::expect_output(str(print(p)), "Study setup \\(three-level\\)") tests.setup_print.R:72:4
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat:::.capture(...)
    4. |   | \-testthat::capture_output_lines(code, print, width = width)
    5. |   |   \-testthat:::eval_with_output(code, print = print, width = width)
    6. |   |     +-withr::with_output_sink(temp, withVisible(code))
    7. |   |     | \-base::force(code)
    8. |   |     \-base::withVisible(code)
    9. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. +-utils::str(print(p))
   11. +-base::print(p)
   12. +-base::print(p)
   13. \-powerlmm:::print.plcp_3lvl(p)
   14.   \-powerlmm:::prepare_print_plcp_3lvl(x)
   15.     \-powerlmm:::prepare_print_plcp(x)
   16.       +-base::format(gd$control * 100, nsmall = 0, digits = 0, width = 2)
   17.       +-base::format(gd$control * 100, nsmall = 0, digits = 0, width = 2)
   18.       \-base::format.default(...)
   19.         \-base::prettyNum(...)
  -- Error (tests.setup_print.R:128:5): setup print ------------------------------
  Error: invalid value 0 for 'digits' argument
  Backtrace:
       x
    1. +-testthat::expect_output(str(print(p)), "Study setup \\(three-level, partially nested\\)") tests.setup_print.R:128:4
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat:::.capture(...)
    4. |   | \-testthat::capture_output_lines(code, print, width = width)
    5. |   |   \-testthat:::eval_with_output(code, print = print, width = width)
    6. |   |     +-withr::with_output_sink(temp, withVisible(code))
    7. |   |     | \-base::force(code)
    8. |   |     \-base::withVisible(code)
    9. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. +-utils::str(print(p))
   11. +-base::print(p)
   12. +-base::print(p)
   13. \-powerlmm:::print.plcp_3lvl(p)
   14.   \-powerlmm:::prepare_print_plcp_3lvl(x)
   15.     \-powerlmm:::prepare_print_plcp(x)
   16.       +-base::format(gd$control * 100, nsmall = 0, digits = 0, width = 2)
   17.       +-base::format(gd$control * 100, nsmall = 0, digits = 0, width = 2)
   18.       \-base::format.default(...)
   19.         \-base::prettyNum(...)
  
  [ FAIL 4 | WARN 5 | SKIP 0 | PASS 902 ]
  Error: Test failures
  Execution halted