Running ‘testthat.R’ [2s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(docxtools)
  > 
  > test_check("docxtools")
  ── 1. Error: Factors are returned unaffected (@test_format_engr.R#14)  ─────────
  'where' must be an environment
  Backtrace:
    1. docxtools::format_engr(head(CO2, n = 5L))
    2. base::format(numeric_engr, scientific = TRUE)
    2. tidyr::gather(., var, value, 1:m_numeric_engr)
    2. dplyr::mutate(., observ_index = as.double(observ_index))
    2. dplyr::mutate(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 2. Error: Integers are returned as characters but unformatted (@test_format_e
  'where' must be an environment
  Backtrace:
    1. docxtools::format_engr(x)
    2. base::format(numeric_engr, scientific = TRUE)
    2. tidyr::gather(., var, value, 1:m_numeric_engr)
    2. dplyr::mutate(., observ_index = as.double(observ_index))
    2. dplyr::mutate(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 3. Error: sigdig vector is correct (@test_format_engr.R#35)  ────────────────
  'where' must be an environment
  Backtrace:
    1. docxtools::format_engr(x, sigdig = 6)
    2. base::format(numeric_engr, scientific = TRUE)
    2. tidyr::gather(., var, value, 1:m_numeric_engr)
    2. dplyr::mutate(., observ_index = as.double(observ_index))
    2. dplyr::mutate(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 4. Error: (unknown) (@test_format_engr.R#55)  ───────────────────────────────
  'where' must be an environment
  Backtrace:
    1. base::do.call(docxtools::format_engr, my_args)
    2. base::format(numeric_engr, scientific = TRUE)
    2. tidyr::gather(., var, value, 1:m_numeric_engr)
    2. dplyr::mutate(., observ_index = as.double(observ_index))
    2. dplyr::mutate(...)
    9. tidyr::separate(...)
   11. ellipsis::check_dots_used()
   13. ellipsis:::exit_handler(action)
   14. base::bquote(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 14 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: Factors are returned unaffected (@test_format_engr.R#14) 
  2. Error: Integers are returned as characters but unformatted (@test_format_engr.R#27) 
  3. Error: sigdig vector is correct (@test_format_engr.R#35) 
  4. Error: (unknown) (@test_format_engr.R#55) 
  
  Error: testthat unit tests failed
  Execution halted