Running ‘testthat.R’ [5s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(ineptR)
  > 
  > test_check("ineptR")
  [ FAIL 2 | WARN 9 | SKIP 1 | PASS 26 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-get_ine_data.R:35:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_dim_info.R:13:5'): Indicator exists and call succeded ────
  all(c("dim_num", "abrv", "versao") %in% names(get_dim_info("0011823"))) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. ├─base::suppressMessages(...) at test-get_dim_info.R:9:3
   2. │ └─base::withCallingHandlers(...)
   3. └─testthat::expect_true(...) at test-get_dim_info.R:13:5
  ── Error ('test-get_ine_data.R:10:3'): Indicator exists and call succeded ──────
  <vctrs_error_subscript_oob/vctrs_error_subscript/rlang_error/error/condition>
  Error in `vars_select_eval(vars, expr, strict = strict, data = x, name_spec = name_spec, 
      uniquely_named = uniquely_named, allow_rename = allow_rename, 
      allow_empty = allow_empty, allow_predicates = allow_predicates, 
      type = type, error_call = error_call)`: Can't subset columns past the end.
  i Location 1 doesn't exist.
  i There are only 0 columns.
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(get_ine_data("0011823"), "data.frame") at test-get_ine_data.R:10:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─ineptR::get_ine_data("0011823")
    5. │ └─... %>% dplyr::relocate(dim_1, .before = 1)
    6. ├─dplyr::relocate(., dim_1, .before = 1)
    7. ├─dplyr:::relocate.data.frame(., dim_1, .before = 1)
    8. │ └─dplyr:::eval_relocate(...)
    9. │   └─tidyselect::eval_select(before, data, env = env, error_call = error_call)
   10. │     └─tidyselect:::eval_select_impl(...)
   11. │       ├─tidyselect:::with_subscript_errors(...)
   12. │       │ └─rlang::try_fetch(...)
   13. │       │   └─base::withCallingHandlers(...)
   14. │       └─tidyselect:::vars_select_eval(...)
   15. │         └─tidyselect:::loc_validate(pos, vars)
   16. │           └─vctrs::vec_as_location(pos, n = length(vars), call = call)
   17. └─vctrs (local) `<fn>`()
   18.   └─vctrs:::stop_subscript_oob(...)
   19.     └─vctrs:::stop_subscript(...)
   20.       └─rlang::abort(...)
  
  [ FAIL 2 | WARN 9 | SKIP 1 | PASS 26 ]
  Error: Test failures
  Execution halted