* using log directory ‘/srv/hornik/tmp/CRAN_pretest/RKorAPClient.Rcheck’ * using R Under development (unstable) (2025-06-25 r88360) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.7 (3) Debian flang-new version 19.1.7 (3) * running under: Debian GNU/Linux 13 (trixie) * using session charset: UTF-8 * checking for file ‘RKorAPClient/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘RKorAPClient’ version ‘1.1.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [4s/7s] OK * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘RKorAPClient’ can be installed ... [6s/6s] OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s/2s] OK * checking whether the package can be loaded with stated dependencies ... [1s/1s] OK * checking whether the package can be unloaded cleanly ... [1s/1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK * checking whether the namespace can be unloaded cleanly ... [2s/2s] OK * checking loading without being on the library search path ... [2s/2s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [9s/9s] OK * checking Rd files ... [0s/0s] OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... [3s/3s] OK * checking for unstated dependencies in ‘demo’ ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [5s/13s] ERROR Running ‘testthat.R’ [5s/12s] 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") apiUrl: https://korap.ids-mannheim.de/api/v1.0/  Searching "einfache" in "": 129 hits Using fields API: Retrieved page 1/3 (page 1 of 3 total) in ?s Using fields API: Retrieved page 2/3 (page 2 of 3 total) in ?s. ETA: 00s (2025-06-26 16:08:19) Using fields API: Retrieved page 3/3 (page 3 of 3 total) in ?s. ETA: 00s (2025-06-26 16:08:19)  Captured output from corpusStats with cache test: Processed vc 1/2: "pubDate in 2020" in 2.2s Processed vc 2/2: "pubDate in 2020" in 0.0s [cached]. ETA: 00s (2025-06-26 16:08:21) Completed processing 2 virtual corpora in 02s (avg: 1.1s/item, 1 cached, 1 non-cached)  Captured output from corpusStats with long VC: Processed vc 1/2: "pubDate in 2020" in 1.9s Processed vc 2/2: "pubDate in 2020 & textType = /.*zeitung.*/ & te..." in 0.1s [cached]. ETA: 00s (2025-06-26 16:08:23) Completed processing 2 virtual corpora in 01s (avg: 1.0s/item, 1 cached, 1 non-cached) [ FAIL 2 | WARN 0 | SKIP 67 | PASS 191 ] ══ Skipped tests (67) ══════════════════════════════════════════════════════════ • On CRAN (67): 'test-KorAPConnection.R:229:3', 'test-KorAPConnection.R:251:3', 'test-KorAPConnection.R:262: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-page-numbering.R:4:3', 'test-page-numbering.R:49:3', 'test-page-numbering.R:97: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' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-KorAPConnection.R:76:3'): persistAccessToken works with valid token ── `persistAccessToken(kco, accessToken = test_token)` threw an error. Message: Cannot find keyring Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-KorAPConnection.R:76:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─RKorAPClient::persistAccessToken(kco, accessToken = test_token) 7. └─RKorAPClient::persistAccessToken(kco, accessToken = test_token) 8. └─RKorAPClient (local) .local(kco, ...) 9. └─keyring::key_set_with_value(...) 10. └─default_backend()$set_with_value(...) 11. └─keyring:::b_ss_set_with_value(...) ── Error ('test-KorAPConnection.R:108:3'): clearAccessToken removes token ────── Error in `b_ss_delete(self, private, service, username, keyring)`: Cannot find keyring Backtrace: ▆ 1. ├─RKorAPClient::clearAccessToken(kco) at test-KorAPConnection.R:108:3 2. └─RKorAPClient::clearAccessToken(kco) 3. └─keyring::key_delete(accessTokenServiceName, kco@KorAPUrl) 4. └─default_backend()$delete(service, username, keyring = keyring) 5. └─keyring:::b_ss_delete(self, private, service, username, keyring) [ FAIL 2 | WARN 0 | SKIP 67 | PASS 191 ] Error: Test failures Execution halted * checking PDF version of manual ... [4s/4s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR