Last updated on 2026-08-01 02:57:18 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.2.1 | 2.37 | 29.83 | 32.20 | ERROR | |
| r-devel-linux-x86_64-debian-gcc | 0.2.1 | 1.84 | 24.36 | 26.20 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 0.2.1 | 46.59 | OK | |||
| r-devel-linux-x86_64-fedora-gcc | 0.2.1 | 21.33 | OK | |||
| r-devel-windows-x86_64 | 0.2.1 | 5.00 | 49.00 | 54.00 | ERROR | |
| r-patched-linux-x86_64 | 0.2.1 | 2.39 | 26.15 | 28.54 | ERROR | |
| r-release-linux-x86_64 | 0.2.1 | 2.38 | 26.39 | 28.77 | ERROR | |
| r-release-macos-arm64 | 0.2.1 | 1.00 | 29.00 | 30.00 | OK | |
| r-release-macos-x86_64 | 0.2.1 | 2.00 | 46.00 | 48.00 | OK | |
| r-release-windows-x86_64 | 0.2.1 | 4.00 | 50.00 | 54.00 | ERROR | |
| r-oldrel-macos-arm64 | 0.2.1 | OK | ||||
| r-oldrel-macos-x86_64 | 0.2.1 | 2.00 | 45.00 | 47.00 | OK | |
| r-oldrel-windows-x86_64 | 0.2.1 | 5.00 | 55.00 | 60.00 | ERROR |
Version: 0.2.1
Check: Rd contents
Result: NOTE
Rd files without \usage:
‘param_defs.Rd’
\arguments should not be documented without \usage.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Version: 0.2.1
Check: examples
Result: ERROR
Running examples in ‘kofdata-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_collection
> ### Title: Download Pre-Defined collection
> ### Aliases: get_collection
>
> ### ** Examples
>
> get_collection("ds_kmi_mixed_freq",show_progress = TRUE)
|
| | 0%
|
|======================================================================| 100%
Error in content(response, as = "text") : is.response(x) is not TRUE
Calls: get_collection -> fromJSON -> content -> stopifnot
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.2.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(kofdata)
Loading required package: jsonlite
Loading required package: httr
>
> test_check("kofdata")
Saving _problems/test_get_collection-4.R
Saving _problems/test_get_collection-23.R
Saving _problems/test_get_metadata-8.R
Saving _problems/test_get_metadata-16.R
Saving _problems/test_get_time_series-4.R
Saving _problems/test_get_time_series-24.R
Saving _problems/test_list_collections-4.R
Saving _problems/test_list_keys-5.R
[ FAIL 8 | WARN 0 | SKIP 6 | PASS 7 ]
══ Skipped tests (6) ═══════════════════════════════════════════════════════════
• nchar(apikey) == 0 is TRUE (6): 'test_get_collection.R:13:3',
'test_get_remaining_quota.R:6:3', 'test_get_time_series.R:13:3',
'test_list_cached_files.R:6:3', 'test_list_collections.R:20:3',
'test_list_keys.R:22:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_get_collection.R:4:3'): get_collection works for public collection ──
Error in `content(response, as = "text")`: is.response(x) is not TRUE
Backtrace:
▆
1. └─kofdata::get_collection("baro_vintages_monthly") at test_get_collection.R:4:3
2. ├─jsonlite::fromJSON(content(response, as = "text"))
3. └─httr::content(response, as = "text")
4. └─base::stopifnot(is.response(x))
── Failure ('test_get_collection.R:23:3'): get_collection errors with invalid set ──
`get_collection("some_nonexistent_set")` threw an error with unexpected message.
Expected match: "The API responded"
Actual message: "is.response(x) is not TRUE"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_get_collection.R:23: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. └─kofdata::get_collection("some_nonexistent_set")
7. ├─jsonlite::fromJSON(content(response, as = "text"))
8. └─httr::content(response, as = "text")
9. └─base::stopifnot(is.response(x))
── Failure ('test_get_metadata.R:8:3'): get_metadata works ─────────────────────
Expected `length(some_meta)` to equal 3.
Differences:
1/1 mismatches
[1] 4 - 3 == 1
── Failure ('test_get_metadata.R:16:3'): get_metadata returns a list ───────────
Expected `get_metadata("ch.kof.inu.ng08.fx.sector_kof.cm.q_ql_chg_price_sales_p3m.share_eq")[[1]]` to inherit from "character".
Actual inheritance: "character"
── Error ('test_get_time_series.R:4:3'): get_time_series works for public series ──
Error in `content(response, as = "text")`: is.response(x) is not TRUE
Backtrace:
▆
1. └─kofdata::get_time_series("kofbarometer", show_progress = F) at test_get_time_series.R:4:3
2. ├─jsonlite::fromJSON(content(response, as = "text"))
3. └─httr::content(response, as = "text")
4. └─base::stopifnot(is.response(x))
── Failure ('test_get_time_series.R:24:3'): get_time_series errors on invalid key ──
`get_time_series("some_nonexistent_key", show_progress = F)` threw an error with unexpected message.
Expected match: "The API responded"
Actual message: "is.response(x) is not TRUE"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_get_time_series.R:24: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. └─kofdata::get_time_series("some_nonexistent_key", show_progress = F)
7. ├─jsonlite::fromJSON(content(response, as = "text"))
8. └─httr::content(response, as = "text")
9. └─base::stopifnot(is.response(x))
── Error ('test_list_collections.R:4:3'): list_available_collections works ─────
Error in `list_available_collections()`: An error occurred when calling the api:
Status: 301
Content:{"message":"This API has been discontinued. Please migrate to version 2 of the KOF Time Series Database API. For more information, please visit https://data.kof.ethz.ch/#tsdb-api."}
Backtrace:
▆
1. └─kofdata::list_available_collections() at test_list_collections.R:4:3
── Error ('test_list_keys.R:5:3'): list_keys_in_collection works ───────────────
Error in `list_available_collections()`: An error occurred when calling the api:
Status: 301
Content:{"message":"This API has been discontinued. Please migrate to version 2 of the KOF Time Series Database API. For more information, please visit https://data.kof.ethz.ch/#tsdb-api."}
Backtrace:
▆
1. └─kofdata::list_available_collections() at test_list_keys.R:5:3
[ FAIL 8 | WARN 0 | SKIP 6 | PASS 7 ]
Error:
! Test failures.
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-patched-linux-x86_64
Version: 0.2.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(kofdata)
Loading required package: jsonlite
Loading required package: httr
>
> test_check("kofdata")
Saving _problems/test_get_collection-4.R
Saving _problems/test_get_collection-23.R
Saving _problems/test_get_metadata-8.R
Saving _problems/test_get_metadata-16.R
Saving _problems/test_get_time_series-4.R
Saving _problems/test_get_time_series-24.R
Saving _problems/test_list_collections-4.R
Saving _problems/test_list_keys-5.R
[ FAIL 8 | WARN 0 | SKIP 6 | PASS 7 ]
══ Skipped tests (6) ═══════════════════════════════════════════════════════════
• nchar(apikey) == 0 is TRUE (6): 'test_get_collection.R:13:3',
'test_get_remaining_quota.R:6:3', 'test_get_time_series.R:13:3',
'test_list_cached_files.R:6:3', 'test_list_collections.R:20:3',
'test_list_keys.R:22:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_get_collection.R:4:3'): get_collection works for public collection ──
Error in `content(response, as = "text")`: is.response(x) is not TRUE
Backtrace:
▆
1. └─kofdata::get_collection("baro_vintages_monthly") at test_get_collection.R:4:3
2. ├─jsonlite::fromJSON(content(response, as = "text"))
3. └─httr::content(response, as = "text")
4. └─base::stopifnot(is.response(x))
── Failure ('test_get_collection.R:23:3'): get_collection errors with invalid set ──
`get_collection("some_nonexistent_set")` threw an error with unexpected message.
Expected match: "The API responded"
Actual message: "is.response(x) is not TRUE"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_get_collection.R:23: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. └─kofdata::get_collection("some_nonexistent_set")
7. ├─jsonlite::fromJSON(content(response, as = "text"))
8. └─httr::content(response, as = "text")
9. └─base::stopifnot(is.response(x))
── Failure ('test_get_metadata.R:8:3'): get_metadata works ─────────────────────
Expected `length(some_meta)` to equal 3.
Differences:
1/1 mismatches
[1] 4 - 3 == 1
── Failure ('test_get_metadata.R:16:3'): get_metadata returns a list ───────────
Expected `get_metadata("ch.kof.inu.ng08.fx.sector_kof.cm.q_ql_chg_price_sales_p3m.share_eq")[[1]]` to inherit from "character".
Actual inheritance: "character"
── Error ('test_get_time_series.R:4:3'): get_time_series works for public series ──
Error in `content(response, as = "text")`: is.response(x) is not TRUE
Backtrace:
▆
1. └─kofdata::get_time_series("kofbarometer", show_progress = F) at test_get_time_series.R:4:3
2. ├─jsonlite::fromJSON(content(response, as = "text"))
3. └─httr::content(response, as = "text")
4. └─base::stopifnot(is.response(x))
── Failure ('test_get_time_series.R:24:3'): get_time_series errors on invalid key ──
`get_time_series("some_nonexistent_key", show_progress = F)` threw an error with unexpected message.
Expected match: "The API responded"
Actual message: "is.response(x) is not TRUE"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_get_time_series.R:24: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. └─kofdata::get_time_series("some_nonexistent_key", show_progress = F)
7. ├─jsonlite::fromJSON(content(response, as = "text"))
8. └─httr::content(response, as = "text")
9. └─base::stopifnot(is.response(x))
── Error ('test_list_collections.R:4:3'): list_available_collections works ─────
Error in `list_available_collections()`: An error occurred when calling the api:
Status: 301
Content:{"message":"This API has been discontinued. Please migrate to version 2 of the KOF Time Series Database API. For more information, please visit https://data.kof.ethz.ch/#tsdb-api."}
Backtrace:
▆
1. └─kofdata::list_available_collections() at test_list_collections.R:4:3
── Error ('test_list_keys.R:5:3'): list_keys_in_collection works ───────────────
Error in `list_available_collections()`: An error occurred when calling the api:
Status: 301
Content:{"message":"This API has been discontinued. Please migrate to version 2 of the KOF Time Series Database API. For more information, please visit https://data.kof.ethz.ch/#tsdb-api."}
Backtrace:
▆
1. └─kofdata::list_available_collections() at test_list_keys.R:5:3
[ FAIL 8 | WARN 0 | SKIP 6 | PASS 7 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2.1
Check: for new files in some other directories
Result: NOTE
Found the following files/directories:
‘~/tmp/scratch/Rtmp1B9pkc’ ‘~/tmp/scratch/Rtmp349bqr’
‘~/tmp/scratch/Rtmp39pe1s’ ‘~/tmp/scratch/Rtmp435J0F’
‘~/tmp/scratch/Rtmp4a0YLq’ ‘~/tmp/scratch/Rtmp4lWhAd’
‘~/tmp/scratch/Rtmp57jq4D’ ‘~/tmp/scratch/Rtmp78Ksjl’
‘~/tmp/scratch/Rtmp7Tmxaz’ ‘~/tmp/scratch/Rtmp82GWle’
‘~/tmp/scratch/Rtmp8cIq3j’ ‘~/tmp/scratch/Rtmp9xJ4W8’
‘~/tmp/scratch/RtmpACHYVR’ ‘~/tmp/scratch/RtmpBw4iC9’
‘~/tmp/scratch/RtmpDRMpWt’ ‘~/tmp/scratch/RtmpENSnOe’
‘~/tmp/scratch/RtmpEOPcC0’ ‘~/tmp/scratch/RtmpEP7jM5’
‘~/tmp/scratch/RtmpErk6D3’ ‘~/tmp/scratch/RtmpF2LZcJ’
‘~/tmp/scratch/RtmpFhNNsg’ ‘~/tmp/scratch/RtmpGHYYp1’
‘~/tmp/scratch/RtmpGM0W1S’ ‘~/tmp/scratch/RtmpIFJR4m’
‘~/tmp/scratch/RtmpITPCdJ’ ‘~/tmp/scratch/RtmpITeL84’
‘~/tmp/scratch/RtmpJJgf1Y’ ‘~/tmp/scratch/RtmpK2W7Wf’
‘~/tmp/scratch/RtmpKfTWW5’ ‘~/tmp/scratch/RtmpL3WcAk’
‘~/tmp/scratch/RtmpL577AL’ ‘~/tmp/scratch/RtmpLj2Ik5’
‘~/tmp/scratch/RtmpMOjmbo’ ‘~/tmp/scratch/RtmpNHlxUS’
‘~/tmp/scratch/RtmpOQUZLT’ ‘~/tmp/scratch/RtmpOzk6wR’
‘~/tmp/scratch/RtmpRExDGL’ ‘~/tmp/scratch/RtmpRKI5rH’
‘~/tmp/scratch/RtmpRi398A’ ‘~/tmp/scratch/RtmpSOkoTf’
‘~/tmp/scratch/RtmpSy2CAw’ ‘~/tmp/scratch/RtmpTUD3kQ’
‘~/tmp/scratch/RtmpTcpBov’ ‘~/tmp/scratch/RtmpVkFrg1’
‘~/tmp/scratch/RtmpZ0ncst’ ‘~/tmp/scratch/Rtmpa9Iick’
‘~/tmp/scratch/RtmpaZRZMa’ ‘~/tmp/scratch/RtmpbIAlH0’
‘~/tmp/scratch/Rtmpbl9LtP’ ‘~/tmp/scratch/RtmpcIpcPS’
‘~/tmp/scratch/RtmpcmFj7o’ ‘~/tmp/scratch/RtmpdPnFdw’
‘~/tmp/scratch/RtmpfFBrgc’ ‘~/tmp/scratch/Rtmpfdk0Lv’
‘~/tmp/scratch/RtmpfwPsBe’ ‘~/tmp/scratch/Rtmpg6vzDp’
‘~/tmp/scratch/RtmphHbbYu’ ‘~/tmp/scratch/RtmpiYWwDW’
‘~/tmp/scratch/Rtmpis0tuw’ ‘~/tmp/scratch/Rtmpjo4XtS’
‘~/tmp/scratch/RtmpjydKyI’ ‘~/tmp/scratch/RtmpkEqscV’
‘~/tmp/scratch/Rtmpl5U0uM’ ‘~/tmp/scratch/RtmplC7g91’
‘~/tmp/scratch/RtmplGKq2j’ ‘~/tmp/scratch/RtmpmHq2bE’
‘~/tmp/scratch/RtmpmOT20U’ ‘~/tmp/scratch/RtmpmVoGxb’
‘~/tmp/scratch/RtmpnvuZ6O’ ‘~/tmp/scratch/Rtmpo4ehdh’
‘~/tmp/scratch/RtmpoTVYNw’ ‘~/tmp/scratch/RtmponvD2C’
‘~/tmp/scratch/RtmppG0ega’ ‘~/tmp/scratch/Rtmppn3e2E’
‘~/tmp/scratch/RtmpsIvBCc’ ‘~/tmp/scratch/Rtmpt1Texo’
‘~/tmp/scratch/RtmptASvXv’ ‘~/tmp/scratch/RtmptGFYQI’
‘~/tmp/scratch/RtmptMSpAr’ ‘~/tmp/scratch/RtmptiDgRB’
‘~/tmp/scratch/RtmptjJMbI’ ‘~/tmp/scratch/Rtmptt69U9’
‘~/tmp/scratch/Rtmptx7niz’ ‘~/tmp/scratch/Rtmptz8joo’
‘~/tmp/scratch/RtmpudYfNW’ ‘~/tmp/scratch/RtmpvXdTuo’
‘~/tmp/scratch/RtmpvuQ1b5’ ‘~/tmp/scratch/RtmpybR77z’
‘~/tmp/scratch/Rtmpyt7iY2’ ‘~/tmp/scratch/Rtmpz0aclL’
‘~/tmp/scratch/RtmpzIv2c1’ ‘~/tmp/scratch/RtmpzO0ZNR’
‘~/tmp/scratch/Rtmpza7SwL’ ‘~/tmp/scratch/RtmpzncFRg’
‘~/tmp/scratch/RtmpzydGGE’ ‘~/tmp/scratch/xvfb-run.29DRqt’
‘~/tmp/scratch/xvfb-run.3K3hLA’ ‘~/tmp/scratch/xvfb-run.41EIRF’
‘~/tmp/scratch/xvfb-run.4Hy5hM’ ‘~/tmp/scratch/xvfb-run.AUsNnC’
‘~/tmp/scratch/xvfb-run.Bxln69’ ‘~/tmp/scratch/xvfb-run.BygAs5’
‘~/tmp/scratch/xvfb-run.FGIaBV’ ‘~/tmp/scratch/xvfb-run.HzpMu4’
‘~/tmp/scratch/xvfb-run.J2PQ7Q’ ‘~/tmp/scratch/xvfb-run.M202A3’
‘~/tmp/scratch/xvfb-run.NPUCkY’ ‘~/tmp/scratch/xvfb-run.NozDU2’
‘~/tmp/scratch/xvfb-run.P8xUmN’ ‘~/tmp/scratch/xvfb-run.SX6Gz1’
‘~/tmp/scratch/xvfb-run.UBhZbi’ ‘~/tmp/scratch/xvfb-run.Ww9pHL’
‘~/tmp/scratch/xvfb-run.aFl0Ol’ ‘~/tmp/scratch/xvfb-run.jIQ7bF’
‘~/tmp/scratch/xvfb-run.oZsBQz’ ‘~/tmp/scratch/xvfb-run.rrRMvW’
‘~/tmp/scratch/xvfb-run.tHnyVc’ ‘~/tmp/scratch/xvfb-run.tzQfp2’
‘~/tmp/scratch/xvfb-run.ukqOSW’ ‘~/tmp/scratch/xvfb-run.xydE1S’
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2.1
Check: examples
Result: ERROR
Running examples in 'kofdata-Ex.R' failed
The error most likely occurred in:
> ### Name: get_collection
> ### Title: Download Pre-Defined collection
> ### Aliases: get_collection
>
> ### ** Examples
>
> get_collection("ds_kmi_mixed_freq",show_progress = TRUE)
|
| | 0%
|
|======================================================================| 100%
Error in content(response, as = "text") : is.response(x) is not TRUE
Calls: get_collection -> fromJSON -> content -> stopifnot
Execution halted
Flavors: r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64
Version: 0.2.1
Check: tests
Result: ERROR
Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(kofdata)
Loading required package: jsonlite
Loading required package: httr
>
> test_check("kofdata")
Saving _problems/test_get_collection-4.R
Saving _problems/test_get_collection-23.R
Saving _problems/test_get_metadata-8.R
Saving _problems/test_get_metadata-16.R
Saving _problems/test_get_time_series-4.R
Saving _problems/test_get_time_series-24.R
Saving _problems/test_list_collections-4.R
Saving _problems/test_list_keys-5.R
[ FAIL 8 | WARN 0 | SKIP 6 | PASS 7 ]
══ Skipped tests (6) ═══════════════════════════════════════════════════════════
• nchar(apikey) == 0 is TRUE (6): 'test_get_collection.R:13:3',
'test_get_remaining_quota.R:6:3', 'test_get_time_series.R:13:3',
'test_list_cached_files.R:6:3', 'test_list_collections.R:20:3',
'test_list_keys.R:22:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_get_collection.R:4:3'): get_collection works for public collection ──
Error in `content(response, as = "text")`: is.response(x) is not TRUE
Backtrace:
▆
1. └─kofdata::get_collection("baro_vintages_monthly") at test_get_collection.R:4:3
2. ├─jsonlite::fromJSON(content(response, as = "text"))
3. └─httr::content(response, as = "text")
4. └─base::stopifnot(is.response(x))
── Failure ('test_get_collection.R:23:3'): get_collection errors with invalid set ──
`get_collection("some_nonexistent_set")` threw an error with unexpected message.
Expected match: "The API responded"
Actual message: "is.response(x) is not TRUE"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_get_collection.R:23: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. └─kofdata::get_collection("some_nonexistent_set")
7. ├─jsonlite::fromJSON(content(response, as = "text"))
8. └─httr::content(response, as = "text")
9. └─base::stopifnot(is.response(x))
── Failure ('test_get_metadata.R:8:3'): get_metadata works ─────────────────────
Expected `length(some_meta)` to equal 3.
Differences:
1/1 mismatches
[1] 4 - 3 == 1
── Failure ('test_get_metadata.R:16:3'): get_metadata returns a list ───────────
Expected `get_metadata("ch.kof.inu.ng08.fx.sector_kof.cm.q_ql_chg_price_sales_p3m.share_eq")[[1]]` to inherit from "character".
Actual inheritance: "character"
── Error ('test_get_time_series.R:4:3'): get_time_series works for public series ──
Error in `content(response, as = "text")`: is.response(x) is not TRUE
Backtrace:
▆
1. └─kofdata::get_time_series("kofbarometer", show_progress = F) at test_get_time_series.R:4:3
2. ├─jsonlite::fromJSON(content(response, as = "text"))
3. └─httr::content(response, as = "text")
4. └─base::stopifnot(is.response(x))
── Failure ('test_get_time_series.R:24:3'): get_time_series errors on invalid key ──
`get_time_series("some_nonexistent_key", show_progress = F)` threw an error with unexpected message.
Expected match: "The API responded"
Actual message: "is.response(x) is not TRUE"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_get_time_series.R:24: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. └─kofdata::get_time_series("some_nonexistent_key", show_progress = F)
7. ├─jsonlite::fromJSON(content(response, as = "text"))
8. └─httr::content(response, as = "text")
9. └─base::stopifnot(is.response(x))
── Error ('test_list_collections.R:4:3'): list_available_collections works ─────
Error in `list_available_collections()`: An error occurred when calling the api:
Status: 301
Content:{"message":"This API has been discontinued. Please migrate to version 2 of the KOF Time Series Database API. For more information, please visit https://data.kof.ethz.ch/#tsdb-api."}
Backtrace:
▆
1. └─kofdata::list_available_collections() at test_list_collections.R:4:3
── Error ('test_list_keys.R:5:3'): list_keys_in_collection works ───────────────
Error in `list_available_collections()`: An error occurred when calling the api:
Status: 301
Content:{"message":"This API has been discontinued. Please migrate to version 2 of the KOF Time Series Database API. For more information, please visit https://data.kof.ethz.ch/#tsdb-api."}
Backtrace:
▆
1. └─kofdata::list_available_collections() at test_list_keys.R:5:3
[ FAIL 8 | WARN 0 | SKIP 6 | PASS 7 ]
Error:
! Test failures.
Execution halted
Flavors: r-devel-windows-x86_64, r-oldrel-windows-x86_64
Version: 0.2.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(kofdata)
Loading required package: jsonlite
Loading required package: httr
>
> test_check("kofdata")
Saving _problems/test_get_collection-4.R
Saving _problems/test_get_collection-23.R
Saving _problems/test_get_metadata-6.R
Saving _problems/test_get_metadata-12.R
Saving _problems/test_get_metadata-16.R
Saving _problems/test_get_time_series-4.R
Saving _problems/test_get_time_series-24.R
Saving _problems/test_list_collections-4.R
Saving _problems/test_list_keys-5.R
[ FAIL 9 | WARN 0 | SKIP 6 | PASS 6 ]
══ Skipped tests (6) ═══════════════════════════════════════════════════════════
• nchar(apikey) == 0 is TRUE (6): 'test_get_collection.R:13:3',
'test_get_remaining_quota.R:6:3', 'test_get_time_series.R:13:3',
'test_list_cached_files.R:6:3', 'test_list_collections.R:20:3',
'test_list_keys.R:22:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_get_collection.R:4:3'): get_collection works for public collection ──
Error in `content(response, as = "text")`: is.response(x) is not TRUE
Backtrace:
▆
1. └─kofdata::get_collection("baro_vintages_monthly") at test_get_collection.R:4:3
2. ├─jsonlite::fromJSON(content(response, as = "text"))
3. └─httr::content(response, as = "text")
4. └─base::stopifnot(is.response(x))
── Failure ('test_get_collection.R:23:3'): get_collection errors with invalid set ──
`get_collection("some_nonexistent_set")` threw an error with unexpected message.
Expected match: "The API responded"
Actual message: "is.response(x) is not TRUE"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_get_collection.R:23: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. └─kofdata::get_collection("some_nonexistent_set")
7. ├─jsonlite::fromJSON(content(response, as = "text"))
8. └─httr::content(response, as = "text")
9. └─base::stopifnot(is.response(x))
── Error ('test_get_metadata.R:4:3'): get_metadata works ───────────────────────
Error: lexical error: invalid char in json text.
<html> <head><title>503 Servic
(right here) ------^
Backtrace:
▆
1. └─kofdata::get_metadata(...) at test_get_metadata.R:4:3
2. └─jsonlite::fromJSON(content(response, as = "text"))
3. └─jsonlite:::parse_and_simplify(...)
4. └─jsonlite:::parseJSON(txt, bigint_as_char)
5. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test_get_metadata.R:12:3'): get_metadata returns NA for nonexistent keys ──
Error: lexical error: invalid char in json text.
<html> <head><title>503 Servic
(right here) ------^
Backtrace:
▆
1. ├─testthat::expect_true(is.na(get_metadata("nokey")[["nokey"]])) at test_get_metadata.R:12:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─kofdata::get_metadata("nokey")
5. └─jsonlite::fromJSON(content(response, as = "text"))
6. └─jsonlite:::parse_and_simplify(...)
7. └─jsonlite:::parseJSON(txt, bigint_as_char)
8. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test_get_metadata.R:16:3'): get_metadata returns a list ─────────────
Error: lexical error: invalid char in json text.
<html> <head><title>503 Servic
(right here) ------^
Backtrace:
▆
1. ├─testthat::expect_is(...) at test_get_metadata.R:16:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─kofdata::get_metadata("ch.kof.inu.ng08.fx.sector_kof.cm.q_ql_chg_price_sales_p3m.share_eq")
5. └─jsonlite::fromJSON(content(response, as = "text"))
6. └─jsonlite:::parse_and_simplify(...)
7. └─jsonlite:::parseJSON(txt, bigint_as_char)
8. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test_get_time_series.R:4:3'): get_time_series works for public series ──
Error in `content(response, as = "text")`: is.response(x) is not TRUE
Backtrace:
▆
1. └─kofdata::get_time_series("kofbarometer", show_progress = F) at test_get_time_series.R:4:3
2. ├─jsonlite::fromJSON(content(response, as = "text"))
3. └─httr::content(response, as = "text")
4. └─base::stopifnot(is.response(x))
── Failure ('test_get_time_series.R:24:3'): get_time_series errors on invalid key ──
`get_time_series("some_nonexistent_key", show_progress = F)` threw an error with unexpected message.
Expected match: "The API responded"
Actual message: "is.response(x) is not TRUE"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_get_time_series.R:24: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. └─kofdata::get_time_series("some_nonexistent_key", show_progress = F)
7. ├─jsonlite::fromJSON(content(response, as = "text"))
8. └─httr::content(response, as = "text")
9. └─base::stopifnot(is.response(x))
── Error ('test_list_collections.R:4:3'): list_available_collections works ─────
Error in `list_available_collections()`: An error occurred when calling the api:
Status: 503
Content:<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>
Backtrace:
▆
1. └─kofdata::list_available_collections() at test_list_collections.R:4:3
── Error ('test_list_keys.R:5:3'): list_keys_in_collection works ───────────────
Error in `list_available_collections()`: An error occurred when calling the api:
Status: 503
Content:<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>
Backtrace:
▆
1. └─kofdata::list_available_collections() at test_list_keys.R:5:3
[ FAIL 9 | WARN 0 | SKIP 6 | PASS 6 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.2.1
Check: tests
Result: ERROR
Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(kofdata)
Loading required package: jsonlite
Loading required package: httr
>
> test_check("kofdata")
Saving _problems/test_get_collection-4.R
Saving _problems/test_get_collection-23.R
Saving _problems/test_get_metadata-8.R
Saving _problems/test_get_metadata-16.R
Saving _problems/test_get_time_series-4.R
Saving _problems/test_get_time_series-24.R
Saving _problems/test_list_collections-4.R
Saving _problems/test_list_keys-5.R
[ FAIL 8 | WARN 0 | SKIP 6 | PASS 7 ]
══ Skipped tests (6) ═══════════════════════════════════════════════════════════
• nchar(apikey) == 0 is TRUE (6): 'test_get_collection.R:13:3',
'test_get_remaining_quota.R:6:3', 'test_get_time_series.R:13:3',
'test_list_cached_files.R:6:3', 'test_list_collections.R:20:3',
'test_list_keys.R:22:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_get_collection.R:4:3'): get_collection works for public collection ──
Error in `content(response, as = "text")`: is.response(x) is not TRUE
Backtrace:
▆
1. └─kofdata::get_collection("baro_vintages_monthly") at test_get_collection.R:4:3
2. ├─jsonlite::fromJSON(content(response, as = "text"))
3. └─httr::content(response, as = "text")
4. └─base::stopifnot(is.response(x))
── Failure ('test_get_collection.R:23:3'): get_collection errors with invalid set ──
`get_collection("some_nonexistent_set")` threw an error with unexpected message.
Expected match: "The API responded"
Actual message: "is.response(x) is not TRUE"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_get_collection.R:23: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. └─kofdata::get_collection("some_nonexistent_set")
7. ├─jsonlite::fromJSON(content(response, as = "text"))
8. └─httr::content(response, as = "text")
9. └─base::stopifnot(is.response(x))
── Failure ('test_get_metadata.R:8:3'): get_metadata works ─────────────────────
Expected `length(some_meta)` to equal 3.
Differences:
1/1 mismatches
[1] 4 - 3 == 1
── Failure ('test_get_metadata.R:16:3'): get_metadata returns a list ───────────
Expected `get_metadata("ch.kof.inu.ng08.fx.sector_kof.cm.q_ql_chg_price_sales_p3m.share_eq")[[1]]` to inherit from "character".
Actual inheritance: "character"
── Error ('test_get_time_series.R:4:3'): get_time_series works for public series ──
Error in `content(response, as = "text")`: is.response(x) is not TRUE
Backtrace:
▆
1. └─kofdata::get_time_series("kofbarometer", show_progress = F) at test_get_time_series.R:4:3
2. ├─jsonlite::fromJSON(content(response, as = "text"))
3. └─httr::content(response, as = "text")
4. └─base::stopifnot(is.response(x))
── Failure ('test_get_time_series.R:24:3'): get_time_series errors on invalid key ──
`get_time_series("some_nonexistent_key", show_progress = F)` threw an error with unexpected message.
Expected match: "The API responded"
Actual message: "is.response(x) is not TRUE"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_get_time_series.R:24: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. └─kofdata::get_time_series("some_nonexistent_key", show_progress = F)
7. ├─jsonlite::fromJSON(content(response, as = "text"))
8. └─httr::content(response, as = "text")
9. └─base::stopifnot(is.response(x))
── Error ('test_list_collections.R:4:3'): list_available_collections works ─────
Error in `list_available_collections()`: An error occurred when calling the api:
Status: 301
Content:{"message":"This API has been discontinued. Please migrate to version 2 of the KOF Time Series Database API. For more information, please visit https://data.kof.ethz.ch/#tsdb-api."}
Backtrace:
▆
1. └─kofdata::list_available_collections() at test_list_collections.R:4:3
── Error ('test_list_keys.R:5:3'): list_keys_in_collection works ───────────────
Error in `list_available_collections()`: An error occurred when calling the api:
Status: 301
Content:{"message":"This API has been discontinued. Please migrate to version 2 of the KOF Time Series Database API. For more information, please visit https://data.kof.ethz.ch/#tsdb-api."}
Backtrace:
▆
1. └─kofdata::list_available_collections() at test_list_keys.R:5:3
[ FAIL 8 | WARN 0 | SKIP 6 | PASS 7 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-windows-x86_64