Running ‘testthat.R’ [37s/47s]
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(dail)
  > 
  > test_check("dail")
  Downloading 2015 dataset.
  trying URL 'https://dadosabertos-download.cgu.gov.br/FalaBR/Arquivos_FalaBR_Filtrado/Arquivos_csv_2015.zip'
  Downloading 2015 dataset.
  trying URL 'https://dadosabertos-download.cgu.gov.br/FalaBR/Arquivos_FalaBR_Filtrado/Arquivos_csv_2015.zip'
  Content type 'application/x-zip-compressed' length 45626914 bytes (43.5 MB)
  ==================================================
  downloaded 43.5 MB
  
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Downloading 2016 dataset.
  trying URL 'https://dadosabertos-download.cgu.gov.br/FalaBR/Arquivos_FalaBR_Filtrado/Arquivos_csv_2016.zip'
  Content type 'application/x-zip-compressed' length 52106729 bytes (49.7 MB)
  ==================================================
  downloaded 49.7 MB
  
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Ended query.
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 1 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-appeals.R:59'): (code run outside of `test_that()`) ────────────
  Error in `download.file(links[x], paste(dir.temp, stringr::str_sub(links[x], 
      start = -21), sep = "/"))`: cannot open URL 'https://dadosabertos-download.cgu.gov.br/FalaBR/Arquivos_FalaBR_Filtrado/Arquivos_csv_2015.zip'
  Backtrace:
      ▆
   1. └─dail::appeals(...) at test-appeals.R:59:2
   2.   └─dail (local) download_lai()
   3.     └─utils::download.file(...)
  
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 1 ]
  Error: Test failures
  Execution halted