Last updated on 2025-07-31 21:51:40 CEST.
Package | ERROR | OK |
---|---|---|
RKorAPClient | 2 | 11 |
Current CRAN status: ERROR: 2, OK: 11
Version: 1.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [13s/22s]
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")
<1b>[32m
Searching "einfache" in ""<1b>[0m<1b>[32m: 129 hits<1b>[0m<1b>[32m
<1b>[0m<1b>[32mUsing fields API: <1b>[0m<1b>[32mRetrieved page 1/3 (page 1 of 3 total) in ?s
<1b>[0m<1b>[32mUsing fields API: <1b>[0m<1b>[32mRetrieved page 2/3 (page 2 of 3 total) in ?s. ETA: 02s (2025-07-30 07:23:01)
<1b>[0m<1b>[32mUsing fields API: <1b>[0m<1b>[32mRetrieved page 3/3 (page 3 of 3 total) in ?s. ETA: 00s (2025-07-30 07:23:00)
<1b>[0m
Captured output from corpusStats with cache test:
<1b>[32mProcessed vc 1/2: "pubDate in 2020" in 0.4s
<1b>[0m<1b>[32mProcessed vc 2/2: "pubDate in 2020" in 0.3s. ETA: 00s (2025-07-30 07:23:00)
<1b>[0m<1b>[32mCompleted processing 2 virtual corpora in 00s (avg: 0.3s/item, 0 cached, 2 non-cached)
<1b>[0m
Captured output from corpusStats with long VC:
<1b>[32mProcessed vc 1/2: "pubDate in 2020" in 0.2s
<1b>[0m<1b>[32mProcessed vc 2/2: "pubDate in 2020 & textType = /.*zeitung.*/ & te..." in 0.3s. ETA: 00s (2025-07-30 07:23:01)
<1b>[0m<1b>[32mCompleted processing 2 virtual corpora in 00s (avg: 0.2s/item, 0 cached, 2 non-cached)
<1b>[0m[ FAIL 1 | WARN 0 | SKIP 76 | PASS 179 ]
══ Skipped tests (76) ══════════════════════════════════════════════════════════
• On CRAN (74): '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-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'
• 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 503: Service Unavailable
* Could not connect to KorAP instance https://korap.ids-mannheim.de/
[ FAIL 1 | WARN 0 | SKIP 76 | PASS 179 ]
Error: Test failures
Execution halted
Flavor: r-patched-linux-x86_64
Version: 1.1.0
Check: tests
Result: ERROR
Running 'testthat.R' [18s]
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")
<1b>[32m
Searching "einfache" in ""<1b>[0m<1b>[32m: 129 hits<1b>[0m<1b>[32m
<1b>[0m<1b>[32mUsing fields API: <1b>[0m<1b>[32mRetrieved page 1/3 (page 1 of 3 total) in ?s
<1b>[0m<1b>[32mUsing fields API: <1b>[0m<1b>[32mRetrieved page 2/3 (page 2 of 3 total) in ?s. ETA: 01s (2025-07-30 06:53:34)
<1b>[0m<1b>[32mUsing fields API: <1b>[0m<1b>[32mRetrieved page 3/3 (page 3 of 3 total) in ?s. ETA: 00s (2025-07-30 06:53:33)
<1b>[0m
Captured output from corpusStats with cache test:
<1b>[32mProcessed vc 1/2: "pubDate in 2020" in 0.3s
<1b>[0m<1b>[32mProcessed vc 2/2: "pubDate in 2020" in 0.2s. ETA: 00s (2025-07-30 06:53:33)
<1b>[0m<1b>[32mCompleted processing 2 virtual corpora in 00s (avg: 0.2s/item, 0 cached, 2 non-cached)
<1b>[0m
Captured output from corpusStats with long VC:
<1b>[32mProcessed vc 1/2: "pubDate in 2020" in 0.2s
<1b>[0m<1b>[32mProcessed vc 2/2: "pubDate in 2020 & textType = /.*zeitung.*/ & te..." in 0.2s. ETA: 00s (2025-07-30 06:53:33)
<1b>[0m<1b>[32mCompleted processing 2 virtual corpora in 00s (avg: 0.2s/item, 0 cached, 2 non-cached)
<1b>[0m[ FAIL 1 | WARN 0 | SKIP 76 | PASS 179 ]
══ Skipped tests (76) ══════════════════════════════════════════════════════════
• On CRAN (74): '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-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'
• 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 503: Service Unavailable
* Could not connect to KorAP instance https://korap.ids-mannheim.de/
[ FAIL 1 | WARN 0 | SKIP 76 | PASS 179 ]
Error: Test failures
Execution halted
Flavor: r-oldrel-windows-x86_64