Running ‘testthat.R’ [8s/9s]
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.
  > 
  > library(testthat)
  > library(omophub)
  No OMOPHUB_API_KEY found. Set it with Sys.setenv(OMOPHUB_API_KEY = 'your_key') or use set_api_key().
  Warning message:
  In default_backend_auto() :
    Selecting 'env' backend. Secrets are stored in environment variables
  > 
  > test_check("omophub")
  v API key set for current R session.
  i Use `store = "keyring"` for persistent storage.
  v API key stored securely in system keyring.
  Saving _problems/test-client-84.R
  <OMOPHub Concept Results>
    Total: 1 concepts found
    Showing: 1 results (page 1 )
  
  # A tibble: 1 x 7
    concept_id concept_name             vocabulary_id domain_id concept_class_id
         <dbl> <chr>                    <chr>         <chr>     <chr>           
  1     201826 Type 2 diabetes mellitus SNOMED        Condition Clinical Finding
  # i 2 more variables: standard_concept <chr>, concept_code <chr>
  [ FAIL 1 | WARN 4 | SKIP 64 | PASS 673 ]
  
  ══ Skipped tests (64) ══════════════════════════════════════════════════════════
  • Integration API key not available (set OMOPHUB_API_KEY or TEST_API_KEY) (64):
    'test-concepts-integration.R:5:3', 'test-concepts-integration.R:18:3',
    'test-concepts-integration.R:30:3', 'test-concepts-integration.R:41:3',
    'test-concepts-integration.R:54:3', 'test-concepts-integration.R:77:3',
    'test-concepts-integration.R:92:3', 'test-concepts-integration.R:105:3',
    'test-domains-integration.R:5:3', 'test-domains-integration.R:21:3',
    'test-domains-integration.R:37:3', 'test-domains-integration.R:56:3',
    'test-fhir-integration.R:5:3', 'test-fhir-integration.R:22:3',
    'test-fhir-integration.R:38:3', 'test-fhir-integration.R:56:3',
    'test-fhir-integration.R:78:3', 'test-fhir-integration.R:116:3',
    'test-hierarchy-integration.R:5:3', 'test-hierarchy-integration.R:21:3',
    'test-hierarchy-integration.R:45:3', 'test-hierarchy-integration.R:59:3',
    'test-mappings-integration.R:5:3', 'test-mappings-integration.R:15:3',
    'test-mappings-integration.R:28:3', 'test-mappings-integration.R:41:3',
    'test-mappings-integration.R:59:3', 'test-mappings-integration.R:75:3',
    'test-mappings-integration.R:91:3', 'test-relationships-integration.R:5:3',
    'test-relationships-integration.R:15:3',
    'test-relationships-integration.R:29:3',
    'test-relationships-integration.R:43:3',
    'test-relationships-integration.R:54:3',
    'test-relationships-integration.R:66:3', 'test-search-integration.R:5:3',
    'test-search-integration.R:15:3', 'test-search-integration.R:32:3',
    'test-search-integration.R:49:3', 'test-search-integration.R:68:3',
    'test-search-integration.R:96:3', 'test-search-integration.R:123:3',
    'test-search-integration.R:138:3', 'test-search-integration.R:159:3',
    'test-search-integration.R:170:3', 'test-search-integration.R:187:3',
    'test-search-integration.R:208:3', 'test-search-integration.R:233:3',
    'test-search-integration.R:254:3', 'test-search-integration.R:264:3',
    'test-search-integration.R:273:3', 'test-search-integration.R:287:3',
    'test-search-integration.R:299:3', 'test-search-integration.R:324:3',
    'test-search-integration.R:344:3', 'test-search-integration.R:362:3',
    'test-search-integration.R:380:3', 'test-vocabularies-integration.R:5:3',
    'test-vocabularies-integration.R:21:3',
    'test-vocabularies-integration.R:38:3',
    'test-vocabularies-integration.R:48:3',
    'test-vocabularies-integration.R:58:3',
    'test-vocabularies-integration.R:73:3',
    'test-vocabularies-integration.R:83:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-client.R:84:7'): OMOPHubClient print method works ──────────────
  Error in `file(file, if (append) "a" else "w")`: cannot open the connection
  Backtrace:
       ▆
    1. ├─withr::with_envvar(...) at test-client.R:78:3
    2. │ └─base::force(code)
    3. └─testthat::expect_output(print(client), "Authenticated: TRUE") at test-client.R:84:7
    4.   └─testthat:::quasi_capture(...)
    5.     └─testthat (local) .capture(...)
    6.       └─testthat::capture_output_lines(code, print, width = width)
    7.         └─testthat:::eval_with_output(code, print = print, width = width)
    8.           └─withr::with_output_sink(path, withVisible(code))
    9.             └─withr:::set_output_sink(file = new, append = append, split = split)
   10.               └─withr:::output_sink(file = file, append = append, split = split)
   11.                 └─base::sink(file = file, append = append, type = "output", split = split)
   12.                   └─base::file(file, if (append) "a" else "w")
  
  [ FAIL 1 | WARN 4 | SKIP 64 | PASS 673 ]
  Error:
  ! Test failures.
  Execution halted