* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/covid19br.Rcheck’ * using R Under development (unstable) (2025-09-04 r88790) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘covid19br/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘covid19br’ 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 ‘covid19br’ can be installed ... OK * checking package 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 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 ... 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 ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘covid19br-Ex.R’ failed The error most likely occurred in: > ### Name: add_geo > ### Title: Adding the geometry to the downloaded data for drawing maps > ### Aliases: add_geo > > ### ** Examples > > ## No test: > library(covid19br) > library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union > > regions <- downloadCovid19(level = "regions") Downloading COVID-19 data... please, be patient! > regions_geo <- add_geo(regions) Error in if (level == "cities") { : argument is of length zero Calls: add_geo Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [20s/22s] [20s/23s] ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(covid19br) > > test_check("covid19br") [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_covid19br.R:16:1'): (code run outside of `test_that()`) ──────── Error in `if (level == "cities") { data <- data %>% filter(!is.na(.data$pop)) }`: argument is of length zero Backtrace: ▆ 1. ├─regions %>% filter(date == max(date)) %>% add_geo() %>% ... at test_covid19br.R:16:1 2. ├─covid19br::add_epi_rates(.) 3. │ └─base::nrow(data) 4. └─covid19br::add_geo(.) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] Error: Test failures Execution halted * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 2 ERRORs See ‘/data/blackswan/ripley/R/packages/tests-devel/covid19br.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 2:48.46, 93.52 + 66.14