Running ‘testthat.R’ [20s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(eudract)
  > 
  > test_check("eudract")
  [ FAIL 6 | WARN 9 | SKIP 8 | PASS 73 ]
  
  ══ Skipped tests (8) ═══════════════════════════════════════════════════════════
  • Need to have the userid/password as environment variables (3):
    'test_basic.R:324:61', 'test_basic.R:343:61', 'test_errors.R:191:71'
  • On CRAN (5): 'test_dotplot.R:38:3', 'test_dotplot.R:53:3',
    'test_dotplot.R:82:3', 'test_dotplot.R:119:1', 'test_dotplot.R:129:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_basic.R:283:3'): convert to eudract ────────────────────────────
  Error in `eudract_convert(input = file.path(path, "simple.xml"), output = file.path(path, 
      "table_eudract.xml"))`: local complex type: The content model is not determinist.Element 'TABLE': No matching global declaration available for the validation root.
  Backtrace:
      ▆
   1. └─eudract::eudract_convert(...) at test_basic.R:283:3
  ── Error ('test_basic.R:294:4'): convert to ClinicalTrials.Gov ─────────────────
  Error in `clintrials_gov_convert(input = file.path(path, "simple.xml"), 
      original = file.path(original_path, "1234.xml"), output = file.path(path, 
          "table_ct.xml"))`: safety data is invalid
  local complex type: The content model is not determinist.Element 'TABLE': No matching global declaration available for the validation root.
  Backtrace:
      ▆
   1. └─eudract::clintrials_gov_convert(...) at test_basic.R:294:4
  ── Error ('test_errors.R:18:13'): no aes ───────────────────────────────────────
  Error in `eudract_convert(file.path(tempdir(), "test_simple.xml"), file.path(tempdir(), 
      "test_output.xml"))`: local complex type: The content model is not determinist.Element 'TABLE': No matching global declaration available for the validation root.
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at test_errors.R:18:13
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─eudract::eudract_convert(...)
  ── Error ('test_errors.R:31:13'): no saes ──────────────────────────────────────
  Error in `eudract_convert(file.path(tempdir(), "test_simple.xml"), file.path(tempdir(), 
      "test_output.xml"))`: local complex type: The content model is not determinist.Element 'TABLE': No matching global declaration available for the validation root.
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at test_errors.R:31:13
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─eudract::eudract_convert(...)
  ── Error ('test_errors.R:54:13'): empty group ──────────────────────────────────
  Error in `eudract_convert(file.path(tempdir(), "/test_simple.xml"), file.path(tempdir(), 
      "/test_output.xml"))`: local complex type: The content model is not determinist.Element 'TABLE': No matching global declaration available for the validation root.
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at test_errors.R:54:13
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─eudract::eudract_convert(...)
  ── Failure ('test_errors.R:242:3'): invalid ct inputs ──────────────────────────
  `clintrials_gov_convert(...)` threw an error with unexpected message.
  Expected match: "original study file is invalid"
  Actual message: "safety data is invalid\nlocal complex type: The content model is not determinist.Element 'TABLE': No matching global declaration available for the validation root."
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test_errors.R:242:3
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─eudract::clintrials_gov_convert(...)
  
  [ FAIL 6 | WARN 9 | SKIP 8 | PASS 73 ]
  Deleting unused snapshots:
  • dotplot/dotplot-ref-rr.svg
  Error: Test failures
  Execution halted