Running 'testthat.R' [78s/84s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(statgenSTA)
  > 
  > test_check("statgenSTA")
  == Skipped tests ===============================================================
  * On CRAN (2)
  * asreml cannot be loaded (2)
  
  == Failed tests ================================================================
  -- Error (test-STA.R:107:3): print.summary.STA functions properly --------------
  Error: invalid value 0 for 'digits' argument
  Backtrace:
      x
   1. \-utils::capture.output(summary(modelSp)) test-STA.R:107:2
   2.   +-base::print(out$value)
   3.   \-statgenSTA:::print.summary.STA(out$value)
   4.     +-base::print(x$stats)
   5.     \-statgenSTA:::print.summary.TD(x$stats)
   6.       +-base::format(x[i, , ], digits = decimals[i], nsmall = decimals[i])
   7.       \-base::format.default(x[i, , ], digits = decimals[i], nsmall = decimals[i])
   8.         \-base::prettyNum(...)
  -- Error (test-TD.R:224:3): print.summary.TD produces correct output -----------
  Error: invalid value 0 for 'digits' argument
  Backtrace:
      x
   1. +-utils::capture.output(...) test-TD.R:224:2
   2. | \-base::withVisible(...elt(i))
   3. +-base::print(...)
   4. \-statgenSTA:::print.summary.TD(...)
   5.   +-base::format(x[i, , ], digits = decimals[i], nsmall = decimals[i])
   6.   \-base::format.default(x[i, , ], digits = decimals[i], nsmall = decimals[i])
   7.     \-base::prettyNum(...)
  -- Error (test-TD.R:231:3): option groupBy in print.summary.TD produces correct output --
  Error: invalid value 0 for 'digits' argument
  Backtrace:
      x
   1. +-utils::capture.output(...) test-TD.R:231:2
   2. | \-base::withVisible(...elt(i))
   3. +-base::print(...)
   4. \-statgenSTA:::print.summary.TD(...)
   5.   +-base::format(x[i, , ], digits = decimals[i], nsmall = decimals[i])
   6.   \-base::format.default(x[i, , ], digits = decimals[i], nsmall = decimals[i])
   7.     \-base::prettyNum(...)
  
  [ FAIL 3 | WARN 0 | SKIP 4 | PASS 777 ]
  Error: Test failures
  Execution halted