Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(statnipokladna)
  > 
  > test_check("statnipokladna")
  trying URL 'https://monitor.statnipokladna.cz/data/extrakty/csv/FinM/2022_12_Data_CSUIS_FINM.zip'
  Content type 'application/zip' length 22564887 bytes (21.5 MB)
  =====
  downloaded 2.3 MB
  
  [ FAIL 1 | WARN 2 | SKIP 3 | PASS 18 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-codelists.R:20:3', 'test-codelists.R:28:3',
    'test-datasets.R:18:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-tables.R:14:3'): get_table works with newer files ──────────────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::map2_chr(years_months$y, years_months$m, ~get_one_dataset(dataset_id, 
      .x, .y, dest_dir = dest_dir, redownload = redownload))`: ℹ In index: 1.
  Caused by error in `utils::download.file()`:
  ! download from 'https://monitor.statnipokladna.cz/data/extrakty/csv/FinM/2022_12_Data_CSUIS_FINM.zip' failed
  Backtrace:
       ▆
    1. ├─testthat::expect_gt(...) at test-tables.R:14:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::nrow(sp_get_table("budget-local", "2022", "12"))
    5. ├─statnipokladna::sp_get_table("budget-local", "2022", "12")
    6. │ └─statnipokladna::sp_get_dataset(...)
    7. │   └─purrr::map2_chr(...)
    8. │     └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
    9. │       ├─purrr:::with_indexed_errors(...)
   10. │       │ └─base::withCallingHandlers(...)
   11. │       ├─purrr:::call_with_cleanup(...)
   12. │       └─statnipokladna (local) .f(.x[[i]], .y[[i]], ...)
   13. │         └─statnipokladna (local) get_one_dataset(dataset_id, .x, .y, dest_dir = dest_dir, redownload = redownload)
   14. │           └─utils::download.file(dataset_url, tf, headers = c(`User-Agent` = usr))
   15. └─base::.handleSimpleError(...)
   16.   └─purrr (local) h(simpleError(msg, call))
   17.     └─cli::cli_abort(...)
   18.       └─rlang::abort(...)
  
  [ FAIL 1 | WARN 2 | SKIP 3 | PASS 18 ]
  Error: Test failures
  Execution halted