Running ‘testthat.R’ [6s/15s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(dtreg)
  > 
  > test_check("dtreg")
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 27 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-extract_epic.R:2:3'): extract_epic gives the specified schema ──
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! SSL peer certificate or SSH remote key was not OK [typeregistry.lab.pidconsortium.net]: SSL certificate problem: certificate has expired
  Backtrace:
      ▆
   1. └─dtreg:::extract_epic("https://doi.org/21.T11969/1ea0e148d9bbe08335cd") at test-extract_epic.R:2:3
   2.   └─dtreg (local) extractor_function(datatype_id)
   3.     └─dtreg:::request_dtr(paste0(datatype_id, "?locatt=view:json"))
   4.       └─httr2::req_perform(req)
   5.         └─base::tryCatch(...)
   6.           └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.             └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.               └─value[[3L]](cond)
  ── Error ('test-extract_epic.R:15:3'): extract_epic extracts properties correctly ──
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! SSL peer certificate or SSH remote key was not OK [typeregistry.lab.pidconsortium.net]: SSL certificate problem: certificate has expired
  Backtrace:
      ▆
   1. └─dtreg:::extract_epic("https://doi.org/21.T11969/31483624b5c80014b6c7") at test-extract_epic.R:15:3
   2.   └─dtreg (local) extractor_function(datatype_id)
   3.     └─dtreg:::request_dtr(paste0(datatype_id, "?locatt=view:json"))
   4.       └─httr2::req_perform(req)
   5.         └─base::tryCatch(...)
   6.           └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.             └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.               └─value[[3L]](cond)
  ── Error ('test-helpers.R:30:3'): show_fields returns no fields ────────────────
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! SSL peer certificate or SSH remote key was not OK [typeregistry.lab.pidconsortium.net]: SSL certificate problem: certificate has expired
  Backtrace:
       ▆
    1. └─dtreg::load_datatype("https://doi.org/21.T11969/1ea0e148d9bbe08335cd") at test-helpers.R:30:3
    2.   └─dtreg:::write_r6_classes(datatype_id)
    3.     └─selected_class$new()$get_schema_info(datatype_id)
    4.       └─dtreg:::extract_epic(datatype_id)
    5.         └─dtreg (local) extractor_function(datatype_id)
    6.           └─dtreg:::request_dtr(paste0(datatype_id, "?locatt=view:json"))
    7.             └─httr2::req_perform(req)
    8.               └─base::tryCatch(...)
    9.                 └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.                   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.                     └─value[[3L]](cond)
  ── Error ('test-helpers.R:36:3'): show_fields returns expected fields ──────────
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! SSL peer certificate or SSH remote key was not OK [typeregistry.lab.pidconsortium.net]: SSL certificate problem: certificate has expired
  Backtrace:
       ▆
    1. └─dtreg::load_datatype("https://doi.org/21.T11969/74bc7748b8cd520908bc") at test-helpers.R:36:3
    2.   └─dtreg:::write_r6_classes(datatype_id)
    3.     └─selected_class$new()$get_schema_info(datatype_id)
    4.       └─dtreg:::extract_epic(datatype_id)
    5.         └─dtreg (local) extractor_function(datatype_id)
    6.           └─dtreg:::request_dtr(paste0(datatype_id, "?locatt=view:json"))
    7.             └─httr2::req_perform(req)
    8.               └─base::tryCatch(...)
    9.                 └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.                   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.                     └─value[[3L]](cond)
  ── Error ('test-load_datatype.R:2:3'): load_datatype loads a specific ePIC schema ──
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! SSL peer certificate or SSH remote key was not OK [typeregistry.lab.pidconsortium.net]: SSL certificate problem: certificate has expired
  Backtrace:
       ▆
    1. └─dtreg::load_datatype("https://doi.org/21.T11969/1ea0e148d9bbe08335cd") at test-load_datatype.R:2:3
    2.   └─dtreg:::write_r6_classes(datatype_id)
    3.     └─selected_class$new()$get_schema_info(datatype_id)
    4.       └─dtreg:::extract_epic(datatype_id)
    5.         └─dtreg (local) extractor_function(datatype_id)
    6.           └─dtreg:::request_dtr(paste0(datatype_id, "?locatt=view:json"))
    7.             └─httr2::req_perform(req)
    8.               └─base::tryCatch(...)
    9.                 └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.                   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.                     └─value[[3L]](cond)
  ── Error ('test-request_dtr.R:2:3'): request_dtr gets info from an epic schema ──
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! SSL peer certificate or SSH remote key was not OK [typeregistry.lab.pidconsortium.net]: SSL certificate problem: certificate has expired
  Backtrace:
      ▆
   1. └─dtreg:::request_dtr("https://doi.org/21.T11969/6128ce5def6ffac006e0?locatt=view:json") at test-request_dtr.R:2:3
   2.   └─httr2::req_perform(req)
   3.     └─base::tryCatch(...)
   4.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   5.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   6.           └─value[[3L]](cond)
  ── Error ('test-to_jsonld.R:38:3'): to_jsonld gives error when a field is a function ──
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! SSL peer certificate or SSH remote key was not OK [typeregistry.lab.pidconsortium.net]: SSL certificate problem: certificate has expired
  Backtrace:
       ▆
    1. └─dtreg::load_datatype("https://doi.org/21.T11969/74bc7748b8cd520908bc") at test-to_jsonld.R:38:3
    2.   └─dtreg:::write_r6_classes(datatype_id)
    3.     └─selected_class$new()$get_schema_info(datatype_id)
    4.       └─dtreg:::extract_epic(datatype_id)
    5.         └─dtreg (local) extractor_function(datatype_id)
    6.           └─dtreg:::request_dtr(paste0(datatype_id, "?locatt=view:json"))
    7.             └─httr2::req_perform(req)
    8.               └─base::tryCatch(...)
    9.                 └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.                   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.                     └─value[[3L]](cond)
  
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 27 ]
  Error: Test failures
  Execution halted