- using R Under development (unstable) (2025-07-21 r88432)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 20.1.8
flang version 20.1.8
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘hlidacr/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘hlidacr’ version ‘0.2.0’
- package encoding: UTF-8
- 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 ‘hlidacr’ can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... [5s/10s] OK
- checking Rd files ... 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [8s/12s] ERROR
Running ‘testthat.R’ [7s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(hlidacr)
>
> test_check("hlidacr")
[ FAIL 16 | WARN 0 | SKIP 0 | PASS 9 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-vcr.R:3:9'): get_datasets() works ──────────────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:2:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::get_datasets(token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:3:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:14:9'): get_dataset_metadata() works ─────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:13:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::get_dataset_metadata("ministri", token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:14:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:23:9'): get_dataset_data() works ─────────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:22:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::get_dataset_data("ministri", token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:23:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:46:9'): get_dataset_record_detail() works ────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:45:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::get_dataset_record_detail("ministri", 1, token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:46:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:56:9'): search_subsidies() works ─────────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:55:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::search_subsidies("golf", page = 1, token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:56:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:66:9'): get_subsidy() works ──────────────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:65:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::get_subsidy("deminimis-1000229862", token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:66:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:77:9'): get_company() works ──────────────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:76:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::get_company("Agrofert", token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:77:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:87:9'): get_person() works ───────────────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:86:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::get_person("andrej-babis", token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:87:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:100:9'): search_person() works ───────────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:99:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::search_person(query = "Kalousek", token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:100:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:109:9'): search_person_by_parameters() works ─────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:108:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::search_person_by_parameters(...) at test-vcr.R:109:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:120:9'): get_person_social() works ───────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:119:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::get_person_social(c("Twitter", "Instagram"), token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:120:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:129:9'): search_contracts() works ────────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:128:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::search_contracts("golf", token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:129:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:141:9'): get_contract() works ────────────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:140:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::get_contract("3583464", token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:141:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:150:9'): get_contract_text() works ───────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:149:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::get_contract_text("3583464", token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:150:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:159:9'): get_websites() works ────────────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:158:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::get_websites(token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:159:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-vcr.R:167:9'): get_website_detail() works ──────────────────────
Error: parse error: premature EOF
(right here) ------^
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-vcr.R:166:5
2. │ └─cassette$call_block(...)
3. └─hlidacr::get_website_detail(id = "10107", token = Sys.getenv("HLIDAC_TOKEN")) at test-vcr.R:167:9
4. └─jsonlite::fromJSON(stringr::str_conv(response$content, "UTF-8"))
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
[ FAIL 16 | WARN 0 | SKIP 0 | PASS 9 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... OK
- checking PDF version of manual ... [8s/14s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR