Running 'testthat.R' [396s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(dhis2r)
  > 
  > test_check("dhis2r")
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 1 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-connect.R:9:3'): Can connect to DHIS2 instance ─────────────────
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `req_perform(dhis2_play_connection$request_sent)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached: [play.dhis2.org] Failed to connect to play.dhis2.org port 443 after 10005 ms: Timeout was reached
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-connect.R:9:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─httr2::resp_status(req_perform(dhis2_play_connection$request_sent))
    5. │ └─httr2:::check_response(resp)
    6. │   └─httr2:::is_response(resp)
    7. └─httr2::req_perform(dhis2_play_connection$request_sent)
    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-connect.R:16:3'): user information is a charater vector ────────
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `req_perform(req_url_path_append(self$request_sent, "me"))`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached: [play.dhis2.org] Failed to connect to play.dhis2.org port 443 after 10016 ms: Timeout was reached
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-connect.R:16:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─dhis2_play_connection$get_user_info()
   5.   └─httr2::req_perform(req_url_path_append(self$request_sent, "me"))
   6.     └─base::tryCatch(...)
   7.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   8.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.           └─value[[3L]](cond)
  ── Error ('test-connect.R:21:3'): Resource(s) "displayName","singular","plural","href" are return ──
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `req_perform(req_url_path_append(self$request_sent, "resources"))`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached: [play.dhis2.org] Failed to connect to play.dhis2.org port 443 after 10015 ms: Timeout was reached
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-connect.R:21:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─dhis2_play_connection$get_metadata()
   5.   └─httr2::req_perform(req_url_path_append(self$request_sent, "resources"))
   6.     └─base::tryCatch(...)
   7.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   8.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.           └─value[[3L]](cond)
  ── Error ('test-connect.R:26:3'): Type of result of a specific resouce is list ──
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `req_perform(req_url_query(req_url_path_append(self$request_sent, 
      endpoint), fields = paste0(fields, collapse = ",")))`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached: [play.dhis2.org] Failed to connect to play.dhis2.org port 443 after 10014 ms: Timeout was reached
  Backtrace:
      ▆
   1. ├─testthat::expect_type(...) at test-connect.R:26:3
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─dhis2_play_connection$get_metadata(endpoint = "dataElements")
   5.   └─httr2::req_perform(...)
   6.     └─base::tryCatch(...)
   7.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   8.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.           └─value[[3L]](cond)
  ── Error ('test-connect.R:32:3'): Type of result of possible fields is a character vector ──
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `req_perform(req_url_query(req_url_query(req_url_query(req_url_path_append(self$request_sent, 
      endpoint), fields = ":all"), paging = "true"), pageSize = "1"))`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached: [play.dhis2.org] Failed to connect to play.dhis2.org port 443 after 10001 ms: Timeout was reached
  Backtrace:
      ▆
   1. ├─testthat::expect_type(...) at test-connect.R:32:3
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─dhis2_play_connection$get_metadata_fields(endpoint = "dataElements")
   5.   └─httr2::req_perform(...)
   6.     └─base::tryCatch(...)
   7.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   8.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.           └─value[[3L]](cond)
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 1 ]
  Error: Test failures
  Execution halted