Running ‘testthat.R’ [50s/165s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidyBdE)
  > 
  > test_check("tidyBdE")
  tidyBdE> Cache dir is /tmp/Rtmp0Mf5yk/working_dir/RtmpZPzMNe
  tidyBdE> Updating catalogs: TC
  tidyBdE> Downloading file from https://www.bde.es/webbde/es/estadis/infoest/series/catalogo_tc.csv
  
  
  trying URL 'https://www.bde.es/webbde/es/estadis/infoest/series/catalogo_tc.csv'
  Content type 'application/vnd.openxmlformats' length 26827 bytes (26 KB)
  ==================================================
  downloaded 26 KB
  
  tidyBdE> Parsing dates
  tidyBdE> Parsing dates
  tidyBdE> Cache dir is /tmp/Rtmp0Mf5yk/working_dir/RtmpZPzMNe/aa
  tidyBdE> Updating catalogs: TC
  tidyBdE> Downloading file from https://www.bde.es/webbde/es/estadis/infoest/series/catalogo_tc.csv
  
  
  trying URL 'https://www.bde.es/webbde/es/estadis/infoest/series/catalogo_tc.csv'
  Content type 'application/vnd.openxmlformats' length 26827 bytes (26 KB)
  ==================================================
  downloaded 26 KB
  
  tidyBdE> Parsing dates
  tidyBdE> Updating catalogs: TC
  tidyBdE> Downloading file from https://www.bde.es/webbde/es/estadis/infoest/series/catalogo_tc.csv
  
  
  trying URL 'https://www.bde.es/webbde/es/estadis/infoest/series/catalogo_tc.csv'
  Content type 'application/vnd.openxmlformats' length 26827 bytes (26 KB)
  ==================================================
  downloaded 26 KB
  
  tidyBdE> Cache dir created on /tmp/Rtmp0Mf5yk/working_dir/RtmpZPzMNe/test
  tidyBdE> Updating catalogs: TC
  tidyBdE> Downloading file from https://www.bde.es/webbde/es/estadis/infoest/series/catalogo_tc.csv
  
  
  trying URL 'https://www.bde.es/webbde/es/estadis/infoest/series/catalogo_tc.csv'
  Content type 'application/vnd.openxmlformats' length 26827 bytes (26 KB)
  ==================================================
  downloaded 26 KB
  
  tidyBdE> URL 
   https://www.bde.es/webbde/es/estadis/infoest/series/aa.csv
  not reachable.
  
  If you think this is a bug consider opening an issue
  tidyBdE> Corrupted file
  tidyBdE> Downloading file from https://www.bde.es/webbde/es/estadis/infoest/series/ti_1_1.csv
  
  
  trying URL 'https://www.bde.es/webbde/es/estadis/infoest/series/ti_1_1.csv'
  Content type 'application/vnd.openxmlformats' length 563020 bytes (549 KB)
  ==================================================
  downloaded 549 KB
  
  tidyBdE> Parsing dates
  tidyBdE> Parsing fields to double
  tidyBde> Reading file ti_1_1.csv from cache.
  tidyBdE> Parsing dates
  tidyBdE> Parsing fields to double
  tidyBdE> Downloading file from https://www.bde.es/webbde/es/estadis/ccff/csvs/cf0101.csv
  
  
  trying URL 'https://www.bde.es/webbde/es/estadis/ccff/csvs/cf0101.csv'
  Content type 'application/vnd.openxmlformats' length 19468 bytes (19 KB)
  ==================================================
  downloaded 19 KB
  
  tidyBdE> Parsing dates
  tidyBdE> Parsing fields to double
  tidyBdE> Parsing dates
  tidyBdE> Extracting series 573234
  
  
  tidyBdE> Downloading serie 573234 from file TC_1_1.csv (alias TC_1_1.1).
  tidyBdE> Caching on temporary directory /tmp/Rtmp0Mf5yk/working_dir/RtmpZPzMNe/TC
  tidyBde> Reading file tc_1_1.csv from cache.
  tidyBdE> Parsing dates
  tidyBdE> Parsing fields to double
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-indicators.R:14:3): Indicators ──────────────────────────────────
  Error: Can't subset columns that don't exist.
  x Location 2 doesn't exist.
  i There are only 0 columns.
  Backtrace:
       █
    1. ├─testthat::expect_silent(bde_ind_gdp_quarterly()) test-indicators.R:14:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─tidyBdE::bde_ind_gdp_quarterly()
   10.   └─tidyBdE::bde_series_load(...)
   11.     ├─all_catalogs[!is.na(all_catalogs[[2]]), c(2, 3, 4)]
   12.     ├─tibble:::`[.tbl_df`(...)
   13.     ├─all_catalogs[[2]]
   14.     └─tibble:::`[[.tbl_df`(all_catalogs, 2)
   15.       └─tibble:::tbl_subset2(x, j = i, j_arg = substitute(i))
   16.         └─tibble:::vectbl_as_col_location2(j, length(x), j_arg = j_arg)
   17.           ├─tibble:::subclass_col_index_errors(...)
   18.           │ └─base::withCallingHandlers(...)
   19.           └─vctrs::vec_as_location2(j, n, names)
   20.             ├─vctrs:::result_get(...)
   21.             └─vctrs:::vec_as_location2_result(...)
   22.               ├─base::tryCatch(...)
   23.               │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
   24.               │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   25.               │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
   26.               └─vctrs::vec_as_location(i, n, names = names, arg = arg)
   27.                 └─(function () ...
   28.                   └─vctrs:::stop_subscript_oob(...)
   29.                     └─vctrs:::stop_subscript(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 39 ]
  Error: Test failures
  Execution halted