Running ‘testthat.R’ [4s/6s]
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