* using log directory ‘/data/gannet/ripley/R/packages/tests-clang/infoelectoral.Rcheck’ * using R Under development (unstable) (2024-05-02 r86508) * using platform: x86_64-pc-linux-gnu * R was compiled by clang version 18.1.5 flang-new version 18.1.5 * running under: Fedora Linux 36 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘infoelectoral/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘infoelectoral’ version ‘1.0.0’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘infoelectoral’ can be installed ... [9s/40s] OK See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-clang/infoelectoral-00install.html' for details. * checking installed package size ... OK * checking package directory ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [16s/51s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... NOTE Note: found 2139 marked UTF-8 strings * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [2s/63s] ERROR Running examples in ‘infoelectoral-Ex.R’ failed The error most likely occurred in: > ### Name: candidatos > ### Title: Download candidate data > ### Aliases: candidatos > > ### ** Examples > > data <- candidatos(tipo_eleccion = "senado", anno = "2004", + mes = "03", nivel = "municipio") trying URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/03200403_MUNI.zip' Warning in download.file(url, temp, mode = "wb") : URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/03200403_MUNI.zip': Timeout of 60 seconds was reached Error in download.file(url, temp, mode = "wb") : cannot open URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/03200403_MUNI.zip' Calls: candidatos ... candidatos_senado -> senado_municipios -> download.file Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [4s/250s] ERROR Running ‘testthat.R’ [4s/249s] 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [7s/129s] ERROR Error(s) in re-building vignettes: --- re-building ‘infoelectoral.Rmd’ using rmarkdown trying URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02198210_MUNI.zip' Quitting from lines at lines 17-21 [unnamed-chunk-1] (infoelectoral.Rmd) Error: processing vignette 'infoelectoral.Rmd' failed with diagnostics: cannot open URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02198210_MUNI.zip' --- failed re-building ‘infoelectoral.Rmd’ --- re-building ‘municipios.Rmd’ using rmarkdown trying URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02201512_MUNI.zip' Quitting from lines at lines 32-35 [unnamed-chunk-2] (municipios.Rmd) Error: processing vignette 'municipios.Rmd' failed with diagnostics: cannot open URL 'https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02201512_MUNI.zip' --- failed re-building ‘municipios.Rmd’ SUMMARY: processing the following files failed: ‘infoelectoral.Rmd’ ‘municipios.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 3 ERRORs, 1 NOTE