Running 'testthat.R' [6s]
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")
  (PT) O código do indicador não existe. / (EN) The indicator code does not exist.
  (PT) O código do indicador não existe. / (EN) The indicator code does not exist.
  (PT) O código do indicador não existe. / (EN) The indicator code does not exist.
  (PT) O código do indicador não existe. / (EN) The indicator code does not exist.
  (PT) O código do indicador não existe. / (EN) The indicator code does not exist.
  (PT) O código do indicador não existe. / (EN) The indicator code does not exist.
  (PT) O código do indicador não existe. / (EN) The indicator code does not exist.
  (PT) O código do indicador não existe. / (EN) The indicator code does not exist.
  (PT) O código do indicador não existe. / (EN) The indicator code does not exist.
  (PT) O código do indicador não existe. / (EN) The indicator code does not exist.
  (PT) O código do indicador não existe. / (EN) The indicator code does not exist.
  [ FAIL 14 | WARN 0 | SKIP 1 | PASS 16 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-get_ine_data.R:35:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_dim_info.R:9:3'): Indicator exists and call succeded ─────
  get_dim_info("0011823") has type 'NULL', not 'list'.
  Backtrace:
      ▆
   1. ├─base::suppressMessages(...) at test-get_dim_info.R:9:2
   2. │ └─base::withCallingHandlers(...)
   3. └─testthat::expect_type(get_dim_info("0011823"), "list") at test-get_dim_info.R:10:4
  ── Failure ('test-get_dim_info.R:9:3'): Indicator exists and call succeded ─────
  get_dim_info("0011823") is not an S3 object
  Backtrace:
      ▆
   1. ├─base::suppressMessages(...) at test-get_dim_info.R:9:2
   2. │ └─base::withCallingHandlers(...)
   3. └─testthat::expect_s3_class(get_dim_info("0011823"), "data.frame") at test-get_dim_info.R:11:4
  ── Failure ('test-get_dim_info.R:9:3'): 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:2
   2. │ └─base::withCallingHandlers(...)
   3. └─testthat::expect_true(...) at test-get_dim_info.R:13:4
  ── Failure ('test-get_dim_values.R:9:3'): Indicator exists and call succeded ───
  get_dim_values("0011823") has type 'NULL', not 'list'.
  ── Failure ('test-get_dim_values.R:10:3'): Indicator exists and call succeded ──
  get_dim_values("0011823") is not an S3 object
  ── Failure ('test-get_dim_values.R:12:3'): Indicator exists and call succeded ──
  all(...) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-get_ine_data.R:9:3'): Indicator exists and call succeded ─────
  get_ine_data(...) has type 'NULL', not 'list'.
  ── Failure ('test-get_ine_data.R:10:3'): Indicator exists and call succeded ────
  get_ine_data("0011823") is not an S3 object
  ── Failure ('test-get_ine_data.R:11:3'): Indicator exists and call succeded ────
  get_ine_data("0011823") does not have names.
  ── Failure ('test-get_ine_data.R:12:3'): Indicator exists and call succeded ────
  all(c("dim_1", "geocod", "geodsg", "valor") %in% names(get_ine_data("0011823"))) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-get_ine_data.R:30:3'): User input is correct ─────────────────
  `get_ine_data("0010003", Blah = c("1234"))` did not throw the expected error.
  ── Failure ('test-get_ine_data.R:31:3'): User input is correct ─────────────────
  `get_ine_data("0010003", dim1 = c("S7A2011"), dim2 = "PT", dim3 = "TLES")` did not throw the expected error.
  ── Failure ('test-get_metadata.R:10:3'): Indicator exists and call succeded ────
  get_metadata("0010003") has type 'NULL', not 'list'.
  ── Failure ('test-get_metadata.R:12:3'): Indicator exists and call succeded ────
  Names of get_metadata("0010003") ('') don't match 'IndicadorCod', 'IndicadorNome', 'Periodic', 'PrimeiroPeriodo', 'UltimoPeriodo', 'UnidadeMedida', 'Potencia10', 'PrecisaoDecimal', 'Lingua', 'DataUltimaAtualizacao', 'DataExtracao'
  
  [ FAIL 14 | WARN 0 | SKIP 1 | PASS 16 ]
  Error: Test failures
  Execution halted