Running ‘testthat.R’ [4s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(czso)
  > 
  > test_check("czso")
  [ FAIL 5 | WARN 0 | SKIP 2 | PASS 0 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-core.R:4:3', 'test-core.R:15:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-catalogue.R:3:3'): catalogue and filter works ──────────────────
  Error in `open.connection(structure(4L, class = c("curl", "connection"), conn_id = <pointer: 0x55b3e9d473a0>), 
      "rb")`: cannot open the connection
  Backtrace:
       ▆
    1. ├─czso::czso_get_catalogue() at test-catalogue.R:3:3
    2. │ ├─... %>% ...
    3. │ ├─base::suppressWarnings(...)
    4. │ │ └─base::withCallingHandlers(...)
    5. │ └─readr::read_csv(...)
    6. │   └─vroom::vroom(...)
    7. │     └─vroom:::vroom_(...)
    8. ├─dplyr::mutate(...)
    9. ├─base (local) `<fn>`(`<curl>`, "rb")
   10. └─base::open.connection(`<curl>`, "rb")
  ── Failure ('test-workflow-utilities.R:2:3'): schema retrieval works ───────────
  Expected `schm <- czso_get_table_schema("340130")` to run without any errors.
  ℹ Actually got a <curl_error_peer_failed_verification> with text:
    SSL peer certificate or SSH remote key was not OK [vdb.czso.cz]:
    SSL certificate problem: unable to get local issuer certificate
  ── Error ('test-workflow-utilities.R:3:3'): schema retrieval works ─────────────
  Error in `eval(code, test_env)`: object 'schm' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_gte(ncol(schm), 5) at test-workflow-utilities.R:3:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─base::ncol(schm)
  ── Failure ('test-workflow-utilities.R:8:3'): documentation retrieval works ────
  Expected `doc_url <- czso_get_dataset_doc("340130")` to run without any errors.
  ℹ Actually got a <curl_error_peer_failed_verification> with text:
    SSL peer certificate or SSH remote key was not OK [vdb.czso.cz]:
    SSL certificate problem: unable to get local issuer certificate
  ── Error ('test-workflow-utilities.R:9:3'): documentation retrieval works ──────
  Error in `eval(code, test_env)`: object 'doc_url' not found
  Backtrace:
      ▆
   1. └─testthat::expect_match(doc_url, "https\\:\\/\\/csu") at test-workflow-utilities.R:9:3
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  
  [ FAIL 5 | WARN 0 | SKIP 2 | PASS 0 ]
  Error: Test failures
  Execution halted