Running 'testthat.R' [5s]
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 6 | WARN 0 | SKIP 0 | PASS 27 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-extract_orkg.R:2:3'): extract_orkg gives the specified template ──
  <httr2_http_502/httr2_http/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
  Backtrace:
      ▆
   1. └─dtreg:::extract_orkg("https://incubating.orkg.org/template/R937648") at test-extract_orkg.R:2:3
   2.   └─dtreg (local) extractor_function(resource_id)
   3.     └─dtreg:::request_dtr(...)
   4.       └─httr2::req_perform(req)
   5.         └─httr2:::handle_resp(req, resp, error_call = error_call)
   6.           └─httr2:::resp_abort(resp, req, body, call = error_call)
   7.             └─rlang::abort(...)
  ── Error ('test-extract_orkg.R:18:3'): extract_orkg extracts properties correctly ──
  <httr2_http_502/httr2_http/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
  Backtrace:
      ▆
   1. └─dtreg:::extract_orkg("https://incubating.orkg.org/template/R855534") at test-extract_orkg.R:18:3
   2.   └─dtreg (local) extractor_function(resource_id)
   3.     └─dtreg:::request_dtr(...)
   4.       └─httr2::req_perform(req)
   5.         └─httr2:::handle_resp(req, resp, error_call = error_call)
   6.           └─httr2:::resp_abort(resp, req, body, call = error_call)
   7.             └─rlang::abort(...)
  ── Error ('test-extract_orkg.R:25:3'): extract_orkg extracts nested templates ──
  <httr2_http_502/httr2_http/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
  Backtrace:
      ▆
   1. └─dtreg:::extract_orkg("https://incubating.orkg.org/template/R903086") at test-extract_orkg.R:25:3
   2.   └─dtreg (local) extractor_function(resource_id)
   3.     └─dtreg:::request_dtr(...)
   4.       └─httr2::req_perform(req)
   5.         └─httr2:::handle_resp(req, resp, error_call = error_call)
   6.           └─httr2:::resp_abort(resp, req, body, call = error_call)
   7.             └─rlang::abort(...)
  ── Error ('test-load_datatype.R:14:3'): load_datatype loads ORKG template properties correctly ──
  <httr2_http_502/httr2_http/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
  Backtrace:
       ▆
    1. └─dtreg::load_datatype("https://incubating.orkg.org/template/R855534") at test-load_datatype.R:14:3
    2.   └─dtreg:::write_r6_classes(datatype_id)
    3.     └─selected_class$new()$get_schema_info(datatype_id)
    4.       └─dtreg:::extract_orkg(datatype_id)
    5.         └─dtreg (local) extractor_function(resource_id)
    6.           └─dtreg:::request_dtr(...)
    7.             └─httr2::req_perform(req)
    8.               └─httr2:::handle_resp(req, resp, error_call = error_call)
    9.                 └─httr2:::resp_abort(resp, req, body, call = error_call)
   10.                   └─rlang::abort(...)
  ── Error ('test-request_dtr.R:7:3'): request_dtr gets info from an orkg template ──
  <httr2_http_502/httr2_http/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
  Backtrace:
      ▆
   1. └─dtreg:::request_dtr("https://incubating.orkg.org//api/templates/R855534") at test-request_dtr.R:7:3
   2.   └─httr2::req_perform(req)
   3.     └─httr2:::handle_resp(req, resp, error_call = error_call)
   4.       └─httr2:::resp_abort(resp, req, body, call = error_call)
   5.         └─rlang::abort(...)
  ── Error ('test-to_jsonld.R:116:3'): to_jsonld writes an ORKG instance into JSONLD ──
  <httr2_http_502/httr2_http/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
  Backtrace:
       ▆
    1. └─dtreg::load_datatype("https://incubating.orkg.org/template/R855534") at test-to_jsonld.R:116:3
    2.   └─dtreg:::write_r6_classes(datatype_id)
    3.     └─selected_class$new()$get_schema_info(datatype_id)
    4.       └─dtreg:::extract_orkg(datatype_id)
    5.         └─dtreg (local) extractor_function(resource_id)
    6.           └─dtreg:::request_dtr(...)
    7.             └─httr2::req_perform(req)
    8.               └─httr2:::handle_resp(req, resp, error_call = error_call)
    9.                 └─httr2:::resp_abort(resp, req, body, call = error_call)
   10.                   └─rlang::abort(...)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 27 ]
  Error: Test failures
  Execution halted