CRAN Package Check Results for Maintainer ‘Héctor Meleiro <hmeleiros at gmail.com>’

Last updated on 2024-06-26 04:49:49 CEST.

Package ERROR NOTE OK
infoelectoral 1 2 10

Package infoelectoral

Current CRAN status: ERROR: 1, NOTE: 2, OK: 10

Version: 1.0.2
Check: data for non-ASCII characters
Result: NOTE Note: found 2139 marked UTF-8 strings Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 1.0.2
Check: tests
Result: ERROR Running 'testthat.R' [72s] 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 Downloading https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/03202307_MUNI.zip Downloading https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02202307_MESA.zip Downloading https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02202307_MUNI.zip Downloading https://infoelectoral.interior.gob.es/estaticos/docxl/apliextr/02202307_TOTA.zip [ FAIL 1 | WARN 0 | SKIP 1 | PASS 7 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-all-elections-provincias.R:24:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-municipios.R:8:1'): (code run outside of `test_that()`) ──────── Error in `curl::curl_fetch_memory(url, handle = handle)`: transfer closed with 461322 bytes remaining to read Backtrace: ▆ 1. ├─municipios("congreso", x$anno, x$mes) %>% ... at test-municipios.R:8:1 2. ├─dplyr::filter(., codigo_provincia != "99") 3. └─infoelectoral::municipios("congreso", x$anno, x$mes) 4. └─infoelectoral:::download_bin(url, temp) 5. └─httr::GET(url, add_headers(`User-Agent` = UA, Connection = "keep-alive")) 6. └─httr:::request_perform(req, hu$handle$handle) 7. ├─httr:::request_fetch(req$output, req$url, handle) 8. └─httr:::request_fetch.write_memory(req$output, req$url, handle) 9. └─curl::curl_fetch_memory(url, handle = handle) [ FAIL 1 | WARN 0 | SKIP 1 | PASS 7 ] Error: Test failures Execution halted Flavor: r-devel-windows-x86_64