Running ‘testthat.R’ [21s/317s]
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(ispdata)
  > 
  > test_check("ispdata")
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  Query completed.
  Query completed.
  Query completed.
  Query completed.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  Query completed.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  Query completed.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  ℹ Using "','" as decimal and "'.'" as grouping mark. Use `read_delim()` for more control.
  Query completed.
  Query completed.
  Query completed.
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 72 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-gun_seizure.R:9:1'): (code run outside of `test_that()`) ───────
  Error in `download.file(url = xlsxFile, destfile = tmpFile, cacheOK = FALSE, 
      mode = "wb", quiet = TRUE)`: download from 'https://www.ispdados.rj.gov.br/Arquivos/ArmasApreendidasEvolucaoCisp.xlsx' failed
  Backtrace:
      ▆
   1. └─ispdata::gun_seizure(gun_type = "edged_weapons") at test-gun_seizure.R:9:0
   2.   ├─janitor::clean_names(...)
   3.   └─openxlsx::readWorkbook(link, startRow = 1, sheet = gun_option)
   4.     ├─openxlsx::read.xlsx(...)
   5.     └─openxlsx:::read.xlsx.default(...)
   6.       └─openxlsx:::getFile(xlsxFile)
   7.         └─utils::download.file(...)
  
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 72 ]
  Error: Test failures
  Execution halted