Running ‘testthat.R’ [38s/49s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(hicp)
  
  Attaching package: 'hicp'
  
  The following object is masked from 'package:stats':
  
      aggregate
  
  The following object is masked from 'package:utils':
  
      data
  
  > 
  > test_check("hicp")
  There is a warning by the reading of the downloaded txt TOC file. Run the same command with verbose=TRUE option to get more info on the issue.
  Saving _problems/test_hicp.data-14.R
  Saving _problems/test_hicp.data-15.R
  There is a warning by the reading of the CSV file. Run the same command with verbose=TRUE option to get more info on the issue.
  404 - No data retrived with the given filter(s)
  Saving _problems/test_hicp.data-39.R
  Saving _problems/test_hicp.data-40.R
  Saving _problems/test_hicp.data-41.R
  Saving _problems/test_hicp.data-42.R
  [ FAIL 6 | WARN 1 | SKIP 0 | PASS 472 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_hicp.data.r:14:1'): (code run outside of `test_that()`) ──────
  Expected `nrow(dt1) > 0` to equal TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Failure ('test_hicp.data.r:15:1'): (code run outside of `test_that()`) ──────
  Expected `names(dt1)` to equal `c(...)`.
  Differences:
   actual | expected          
          - "title"        [1]
          - "code"         [2]
          - "type"         [3]
          - "lastUpdate"   [4]
          - "lastModified" [5]
          - "dataStart"    [6]
          - "dataEnd"      [7]
          - "values"       [8]
  
  ── Failure ('test_hicp.data.r:39:1'): (code run outside of `test_that()`) ──────
  Expected `nrow(dt3) > 0` to equal TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Failure ('test_hicp.data.r:40:1'): (code run outside of `test_that()`) ──────
  Expected `names(dt3)` to equal `c("coicop", "geo", "time", "values")`.
  Differences:
  `actual`:                                 
  `expected`: "coicop" "geo" "time" "values"
  
  ── Failure ('test_hicp.data.r:41:1'): (code run outside of `test_that()`) ──────
  Expected `unique(as.character(dt3$geo))` to equal "EA".
  Differences:
  `actual`:       
  `expected`: "EA"
  
  ── Failure ('test_hicp.data.r:42:1'): (code run outside of `test_that()`) ──────
  Expected `min(as.integer(dt3$time))` to equal 2020.
  Differences:
    `actual`:    Inf
  `expected`: 2020.0
  
  
  [ FAIL 6 | WARN 1 | SKIP 0 | PASS 472 ]
  Error:
  ! Test failures.
  Execution halted