Running ‘testthat.R’ [10s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("RKorAPClient")
  > 
  > # Set up keyring for testing to avoid interactive password prompts
  > if (requireNamespace("keyring", quietly = TRUE)) {
  +   # Use environment backend for testing to avoid password prompts
  +   if (!nzchar(Sys.getenv("KEYRING_BACKEND"))) {
  +     Sys.setenv("KEYRING_BACKEND" = "env")
  +   }
  +   # Set empty password for file backend if needed
  +   if (!nzchar(Sys.getenv("KEYRING_PASS"))) {
  +     Sys.setenv("KEYRING_PASS" = "")
  +   }
  + }
  > 
  > test_check("RKorAPClient")
  Saving _problems/test-KorAPConnection-27.R
  [32m
  Searching "einfache" in ""[0m[32m: 129 hits[0m[32m, took 1.2130729999999998 ms
  [0m[32mUsing fields API: [0m[32mRetrieved page 1/3 (page 1 of 3 total) in ?s
  [0m[32mUsing fields API: [0m[32mRetrieved page 2/3 (page 2 of 3 total) in ?s. ETA: 01s (2026-01-19 14:09:13)
  [0m[32mUsing fields API: [0m[32mRetrieved page 3/3 (page 3 of 3 total) in ?s. ETA: 00s (2026-01-19 14:09:12)
  [0m
  Captured output from corpusStats with cache test:
  [32mProcessed vc 1/2: "pubDate in 2020" in  0.2s
  [0m[32mProcessed vc 2/2: "pubDate in 2020" in  0.1s. ETA: 00s (2026-01-19 14:09:12)
  [0m[32mCompleted processing 2 virtual corpora in 00s (avg:  0.2s/item, 0 cached, 2 non-cached)
  [0m
  Captured output from corpusStats with long VC:
  [32mProcessed vc 1/2: "pubDate in 2020" in  0.2s
  [0m[32mProcessed vc 2/2: "pubDate in 2020 & textType = /.*zeitung.*/ & te..." in  0.2s. ETA: 00s (2026-01-19 14:09:13)
  [0m[32mCompleted processing 2 virtual corpora in 00s (avg:  0.2s/item, 0 cached, 2 non-cached)
  [0m[ FAIL 1 | WARN 0 | SKIP 86 | PASS 265 ]
  
  ══ Skipped tests (86) ══════════════════════════════════════════════════════════
  • On CRAN (84): 'test-KorAPConnection.R:56:2', 'test-KorAPConnection.R:93:2',
    'test-KorAPConnection.R:103:2', 'test-KorAPConnection.R:139:2',
    'test-KorAPConnection.R:149:2', 'test-KorAPConnection.R:161:2',
    'test-KorAPConnection.R:170:2', 'test-KorAPConnection.R:259:3',
    'test-KorAPConnection.R:281:3', 'test-KorAPConnection.R:292:3',
    'test-collocations.R:2:3', 'test-collocations.R:15:3',
    'test-collocations.R:35:3', 'test-collocations.R:197:3',
    'test-collocations.R:214:3', 'test-collocations.R:232:3',
    'test-collocations.R:249:3', 'test-collocations.R:266:3',
    'test-collocations.R:283:3', 'test-collocations.R:303:3',
    'test-corpusQuery.R:2:3', 'test-corpusQuery.R:9:3',
    'test-corpusQuery.R:21:3', 'test-corpusQuery.R:31:3',
    'test-corpusQuery.R:43:3', 'test-corpusQuery.R:55:3',
    'test-corpusQuery.R:62:3', 'test-corpusQuery.R:74:3',
    'test-corpusQuery.R:85:3', 'test-corpusQuery.R:91:3',
    'test-corpusQuery.R:99:3', 'test-corpusQuery.R:107:3',
    'test-corpusQuery.R:115:3', 'test-corpusQuery.R:123:3',
    'test-corpusQuery.R:129:3', 'test-corpusQuery.R:148:3',
    'test-corpusQuery.R:201:3', 'test-corpusQuery.R:283:3',
    'test-corpusStats-eta.R:2:3', 'test-corpusStats-eta.R:136:3',
    'test-corpusStats.R:2:3', 'test-corpusStats.R:11:3',
    'test-corpusStats.R:20:3', 'test-corpusStats.R:26:3',
    'test-corpusquery-eta.R:2:3', 'test-corpusquery-eta.R:61:3',
    'test-corpusquery-eta.R:119:3', 'test-corpusquery-eta.R:170:3',
    'test-demos.R:2:3', 'test-demos.R:16:3', 'test-demos.R:31:3',
    'test-demos.R:46:3', 'test-demos.R:61:3', 'test-demos.R:78:3',
    'test-demos.R:94:3', 'test-demos.R:111:3', 'test-demos.R:129:3',
    'test-fetch.R:2:3', 'test-fetch.R:13:3', 'test-fetchAnnotations.R:2:3',
    'test-fetchAnnotations.R:66:3', 'test-fetchAnnotations.R:99:3',
    'test-fetchAnnotations.R:214:3', 'test-fetchAnnotations.R:263:3',
    'test-fetchAnnotations.R:293:3', 'test-fetchAnnotations.R:342:3',
    'test-page-numbering.R:4:3', 'test-page-numbering.R:49:3',
    'test-page-numbering.R:97:3', 'test-readme-against-llm.R:172:3',
    'test-readme-against-llm.R:218:3', 'test-readme-against-llm.R:260:3',
    'test-textMetadata.R:2:3', 'test-textMetadata.R:17:3',
    'test-textMetadata.R:28:3', 'test-textMetadata.R:40:3',
    'test-textMetadata.R:53:3', 'test-textMetadata.R:63:3',
    'test-textMetadata.R:78:3', 'test-textMetadata.R:89:3',
    'test-textMetadata.R:98:3', 'test-textMetadata.R:107:3',
    'test-textMetadata.R:127:3', 'test-textMetadata.R:139:3'
  • is.null(kco@welcome) is TRUE (2): 'test-KorAPConnection.R:15:3',
    'test-KorAPConnection.R:33:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-KorAPConnection.R:24:3'): Opening KorAPConnection with invalid apiToken fails gracefully ──
  `KorAPConnection(accessToken = "test token", timeout = 3)` produced unexpected messages.
  Expected match: 401|Timeout|progress
  Actual values:
  * Error: Request failed with status 400: Bad Request
  
  * Could not connect to KorAP instance https://korap.ids-mannheim.de/
  
  
  [ FAIL 1 | WARN 0 | SKIP 86 | PASS 265 ]
  Error:
  ! Test failures.
  Execution halted