Running 'testthat.R' [243s]
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(infoelectoral)
  > 
  > test_check("infoelectoral")
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  trying URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/03202307_MUNI.zip'
  trying URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02202307_MESA.zip'
  trying URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02202307_MUNI.zip'
  trying URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02202307_TOTA.zip'
  [ FAIL 4 | WARN 4 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-candidatos.R:9:1'): (code run outside of `test_that()`) ────────
  Error in `download.file(url, temp, mode = "wb")`: cannot open URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/03202307_MUNI.zip'
  Backtrace:
      ▆
   1. ├─... %>% filter(codigo_provincia != "99") at test-candidatos.R:9:1
   2. ├─dplyr::filter(., codigo_provincia != "99")
   3. └─infoelectoral::candidatos("senado", x$anno, x$mes, nivel = "municipio")
   4.   └─infoelectoral:::candidatos_senado(anno, mes, nivel)
   5.     └─infoelectoral:::senado_municipios(anno, mes)
   6.       └─utils::download.file(url, temp, mode = "wb")
  ── Error ('test-mesas.R:9:1'): (code run outside of `test_that()`) ─────────────
  Error in `download.file(url, temp, mode = "wb")`: cannot open URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02202307_MESA.zip'
  Backtrace:
      ▆
   1. ├─mesas("congreso", x$anno, x$mes) %>% ... at test-mesas.R:9:1
   2. ├─dplyr::filter(., codigo_provincia != "99")
   3. └─infoelectoral::mesas("congreso", x$anno, x$mes)
   4.   └─utils::download.file(url, temp, mode = "wb")
  ── Error ('test-municipios.R:9:1'): (code run outside of `test_that()`) ────────
  Error in `download.file(url, temp, mode = "wb")`: cannot open URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02202307_MUNI.zip'
  Backtrace:
      ▆
   1. ├─municipios("congreso", x$anno, x$mes) %>% ... at test-municipios.R:9:1
   2. ├─dplyr::filter(., codigo_provincia != "99")
   3. └─infoelectoral::municipios("congreso", x$anno, x$mes)
   4.   └─utils::download.file(url, temp, mode = "wb")
  ── Error ('test-provincias.R:9:1'): (code run outside of `test_that()`) ────────
  Error in `download.file(url, temp, mode = "wb")`: cannot open URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02202307_TOTA.zip'
  Backtrace:
      ▆
   1. ├─provincias("congreso", x$anno, x$mes) %>% ... at test-provincias.R:9:1
   2. ├─dplyr::filter(., codigo_provincia != "99")
   3. └─infoelectoral::provincias("congreso", x$anno, x$mes)
   4.   └─utils::download.file(url, temp, mode = "wb")
  
  [ FAIL 4 | WARN 4 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted