Running 'testthat.R' [77s/86s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(defineR)
  Loading required package: common
  Loading required package: glue
  > 
  > test_check("defineR")
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 101 ]
  
  == Failed tests ================================================================
  -- Error (test-checks.R:76:3): checks4: write_check_report() works as expected. --
  Error in `round(x$sec[n0], digits)`: non-numeric argument to mathematical function
  Backtrace:
       x
    1. \-defineR:::write_check_report(op, msg, "PDF") at test-checks.R:76:2
    2.   \-defineR:::output_report(...)
    3.     \-reporter::write_report(...)
    4.       \-reporter:::write_report_pdf2(x)
    5.         \-reporter:::write_pdf(doc)
    6.           \-reporter:::render.pdf_document(doc)
    7.             +-reporter:::render(itm)
    8.             \-reporter:::render.pdf_info(itm)
    9.               +-base::paste0(...)
   10.               +-base::as.character(tm, "D:%Y%m%d%H%M%S")
   11.               \-base::as.character.POSIXt(tm, "D:%Y%m%d%H%M%S")
  -- Error (test-write.R:350:3): write15: write_define() works as expected on metadata with checks. --
  Error in `round(x$sec[n0], digits)`: non-numeric argument to mathematical function
  Backtrace:
       x
    1. \-defineR::write_define(fp, op, check = TRUE, view = view) at test-write.R:350:2
    2.   \-defineR:::write_check_report(cpth, msg)
    3.     \-defineR:::output_report(...)
    4.       \-reporter::write_report(...)
    5.         \-reporter:::write_report_pdf2(x)
    6.           \-reporter:::write_pdf(doc)
    7.             \-reporter:::render.pdf_document(doc)
    8.               +-reporter:::render(itm)
    9.               \-reporter:::render.pdf_info(itm)
   10.                 +-base::paste0(...)
   11.                 +-base::as.character(tm, "D:%Y%m%d%H%M%S")
   12.                 \-base::as.character.POSIXt(tm, "D:%Y%m%d%H%M%S")
  -- Error (test-write.R:406:3): write17: write_define() works as expected on CDISC metadata with checks. --
  Error in `round(x$sec[n0], digits)`: non-numeric argument to mathematical function
  Backtrace:
       x
    1. \-defineR::write_define(fp, op, check = TRUE, view = view) at test-write.R:406:2
    2.   \-defineR:::write_check_report(cpth, msg)
    3.     \-defineR:::output_report(...)
    4.       \-reporter::write_report(...)
    5.         \-reporter:::write_report_pdf2(x)
    6.           \-reporter:::write_pdf(doc)
    7.             \-reporter:::render.pdf_document(doc)
    8.               +-reporter:::render(itm)
    9.               \-reporter:::render.pdf_info(itm)
   10.                 +-base::paste0(...)
   11.                 +-base::as.character(tm, "D:%Y%m%d%H%M%S")
   12.                 \-base::as.character.POSIXt(tm, "D:%Y%m%d%H%M%S")
  -- Error (test-write.R:432:3): write18: write_define() works as expected on perfect SDTM metadata. --
  Error in `round(x$sec[n0], digits)`: non-numeric argument to mathematical function
  Backtrace:
       x
    1. \-defineR::write_define(fp, op, check = TRUE, view = view, end_char = "\n") at test-write.R:432:2
    2.   \-defineR:::write_check_report(cpth, msg)
    3.     \-defineR:::output_report(...)
    4.       \-reporter::write_report(...)
    5.         \-reporter:::write_report_pdf2(x)
    6.           \-reporter:::write_pdf(doc)
    7.             \-reporter:::render.pdf_document(doc)
    8.               +-reporter:::render(itm)
    9.               \-reporter:::render.pdf_info(itm)
   10.                 +-base::paste0(...)
   11.                 +-base::as.character(tm, "D:%Y%m%d%H%M%S")
   12.                 \-base::as.character.POSIXt(tm, "D:%Y%m%d%H%M%S")
  -- Error (test-write.R:519:3): write22: write_define() works as expected on perfect ADAM metadata. --
  Error in `round(x$sec[n0], digits)`: non-numeric argument to mathematical function
  Backtrace:
       x
    1. \-defineR::write_define(fp, op, type = "ADAM", check = TRUE, view = view) at test-write.R:519:2
    2.   \-defineR:::write_check_report(cpth, msg)
    3.     \-defineR:::output_report(...)
    4.       \-reporter::write_report(...)
    5.         \-reporter:::write_report_pdf2(x)
    6.           \-reporter:::write_pdf(doc)
    7.             \-reporter:::render.pdf_document(doc)
    8.               +-reporter:::render(itm)
    9.               \-reporter:::render.pdf_info(itm)
   10.                 +-base::paste0(...)
   11.                 +-base::as.character(tm, "D:%Y%m%d%H%M%S")
   12.                 \-base::as.character.POSIXt(tm, "D:%Y%m%d%H%M%S")
  -- Error (test-write.R:551:3): write23: write_define() works with custom XSD and XSLT. --
  Error in `round(x$sec[n0], digits)`: non-numeric argument to mathematical function
  Backtrace:
       x
    1. \-defineR::write_define(fp, op, type = "ADAM", check = TRUE, view = view) at test-write.R:551:2
    2.   \-defineR:::write_check_report(cpth, msg)
    3.     \-defineR:::output_report(...)
    4.       \-reporter::write_report(...)
    5.         \-reporter:::write_report_pdf2(x)
    6.           \-reporter:::write_pdf(doc)
    7.             \-reporter:::render.pdf_document(doc)
    8.               +-reporter:::render(itm)
    9.               \-reporter:::render.pdf_info(itm)
   10.                 +-base::paste0(...)
   11.                 +-base::as.character(tm, "D:%Y%m%d%H%M%S")
   12.                 \-base::as.character.POSIXt(tm, "D:%Y%m%d%H%M%S")
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 101 ]
  Error: Test failures
  Execution halted