* using log directory ‘/srv/hornik/tmp/CRAN_pretest/BrazilDataAPI.Rcheck’ * using R Under development (unstable) (2025-09-14 r88832) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.7 (3+b1) Debian flang-new version 19.1.7 (3+b1) * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * checking for file ‘BrazilDataAPI/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘BrazilDataAPI’ version ‘0.2.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [5s/7s] OK * 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 ‘BrazilDataAPI’ can be installed ... [2s/2s] OK * checking package directory ... OK * checking for future file timestamps ... 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 ... [1s/1s] OK * checking whether the package can be loaded with stated dependencies ... [0s/0s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [1s/1s] OK * checking loading without being on the library search path ... [1s/1s] 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 ... [4s/4s] OK * checking Rd files ... [0s/0s] 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 ... [0s/0s] OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [1s/1s] OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [4s/8s] ERROR Running ‘testthat.R’ [4s/8s] 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(BrazilDataAPI) > > test_check("BrazilDataAPI") Error: Received status code 400 Error: Received status code 404 Error: status 400 - CNPJ not found or invalid. Error: status 404 - CNPJ not found or invalid. Error: Received status code 500 Error: Received status code 500 Error: Received status code 500 Error: Received status code 400 Error: Received status code 500 Datasets available in the 'BrazilDataAPI' package: Datasets available in the 'BrazilDataAPI' package: [ FAIL 8 | WARN 0 | SKIP 145 | PASS 134 ] ══ Skipped tests (145) ═════════════════════════════════════════════════════════ • On CRAN (145): 'test-get_brazil_banks.R:23:3', 'test-get_brazil_banks.R:42:3', 'test-get_brazil_cep.R:23:3', 'test-get_brazil_cep.R:51:3', 'test-get_brazil_child_mortality.R:23:3', 'test-get_brazil_child_mortality.R:37:3', 'test-get_brazil_child_mortality.R:43:3', 'test-get_brazil_child_mortality.R:50:3', 'test-get_brazil_child_mortality.R:56:3', 'test-get_brazil_child_mortality.R:63:3', 'test-get_brazil_child_mortality.R:69:3', 'test-get_brazil_child_mortality.R:75:3', 'test-get_brazil_child_mortality.R:81:3', 'test-get_brazil_child_mortality.R:87:3', 'test-get_brazil_child_mortality.R:93:3', 'test-get_brazil_child_mortality.R:99:3', 'test-get_brazil_child_mortality.R:110:3', 'test-get_brazil_child_mortality.R:126:3', 'test-get_brazil_child_mortality.R:135:3', 'test-get_brazil_cnpj.R:23:3', 'test-get_brazil_cnpj.R:57:3', 'test-get_brazil_cpi.R:23:3', 'test-get_brazil_cpi.R:37:3', 'test-get_brazil_cpi.R:43:3', 'test-get_brazil_cpi.R:50:3', 'test-get_brazil_cpi.R:56:3', 'test-get_brazil_cpi.R:63:3', 'test-get_brazil_cpi.R:69:3', 'test-get_brazil_cpi.R:75:3', 'test-get_brazil_cpi.R:81:3', 'test-get_brazil_cpi.R:87:3', 'test-get_brazil_cpi.R:93:3', 'test-get_brazil_cpi.R:99:3', 'test-get_brazil_cpi.R:110:3', 'test-get_brazil_cpi.R:119:3', 'test-get_brazil_cpi.R:134:3', 'test-get_brazil_cpi.R:143:3', 'test-get_brazil_cpi.R:160:3', 'test-get_brazil_energy_use.R:23:3', 'test-get_brazil_energy_use.R:37:3', 'test-get_brazil_energy_use.R:43:3', 'test-get_brazil_energy_use.R:50:3', 'test-get_brazil_energy_use.R:56:3', 'test-get_brazil_energy_use.R:63:3', 'test-get_brazil_energy_use.R:69:3', 'test-get_brazil_energy_use.R:75:3', 'test-get_brazil_energy_use.R:81:3', 'test-get_brazil_energy_use.R:87:3', 'test-get_brazil_energy_use.R:93:3', 'test-get_brazil_energy_use.R:99:3', 'test-get_brazil_energy_use.R:111:3', 'test-get_brazil_energy_use.R:122:3', 'test-get_brazil_energy_use.R:131:3', 'test-get_brazil_energy_use.R:143:3', 'test-get_brazil_energy_use.R:155:3', 'test-get_brazil_energy_use.R:164:3', 'test-get_brazil_gdp.R:23:3', 'test-get_brazil_gdp.R:38:3', 'test-get_brazil_gdp.R:44:3', 'test-get_brazil_gdp.R:51:3', 'test-get_brazil_gdp.R:57:3', 'test-get_brazil_gdp.R:64:3', 'test-get_brazil_gdp.R:70:3', 'test-get_brazil_gdp.R:76:3', 'test-get_brazil_gdp.R:82:3', 'test-get_brazil_gdp.R:88:3', 'test-get_brazil_gdp.R:94:3', 'test-get_brazil_gdp.R:100:3', 'test-get_brazil_gdp.R:112:3', 'test-get_brazil_gdp.R:123:3', 'test-get_brazil_gdp.R:132:3', 'test-get_brazil_gdp.R:144:3', 'test-get_brazil_gdp.R:157:3', 'test-get_brazil_gdp.R:169:3', 'test-get_brazil_gdp.R:178:3', 'test-get_brazil_gdp.R:188:3', 'test-get_brazil_holidays.R:23:3', 'test-get_brazil_holidays.R:41:3', 'test-get_brazil_holidays.R:54:3', 'test-get_brazil_holidays.R:62:3', 'test-get_brazil_hospital_beds.R:23:3', 'test-get_brazil_hospital_beds.R:37:3', 'test-get_brazil_hospital_beds.R:43:3', 'test-get_brazil_hospital_beds.R:50:3', 'test-get_brazil_hospital_beds.R:56:3', 'test-get_brazil_hospital_beds.R:63:3', 'test-get_brazil_hospital_beds.R:69:3', 'test-get_brazil_hospital_beds.R:75:3', 'test-get_brazil_hospital_beds.R:81:3', 'test-get_brazil_hospital_beds.R:87:3', 'test-get_brazil_hospital_beds.R:93:3', 'test-get_brazil_hospital_beds.R:99:3', 'test-get_brazil_hospital_beds.R:111:3', 'test-get_brazil_hospital_beds.R:122:3', 'test-get_brazil_hospital_beds.R:131:3', 'test-get_brazil_hospital_beds.R:143:3', 'test-get_brazil_hospital_beds.R:152:3', 'test-get_brazil_hospital_beds.R:169:3', 'test-get_brazil_hospital_beds.R:185:3', 'test-get_brazil_life_expectancy.R:24:3', 'test-get_brazil_life_expectancy.R:40:3', 'test-get_brazil_life_expectancy.R:46:3', 'test-get_brazil_life_expectancy.R:53:3', 'test-get_brazil_life_expectancy.R:60:3', 'test-get_brazil_life_expectancy.R:66:3', 'test-get_brazil_life_expectancy.R:72:3', 'test-get_brazil_life_expectancy.R:78:3', 'test-get_brazil_literacy_rate.R:24:3', 'test-get_brazil_literacy_rate.R:40:3', 'test-get_brazil_literacy_rate.R:46:3', 'test-get_brazil_literacy_rate.R:53:3', 'test-get_brazil_literacy_rate.R:60:3', 'test-get_brazil_literacy_rate.R:66:3', 'test-get_brazil_literacy_rate.R:73:3', 'test-get_brazil_literacy_rate.R:79:3', 'test-get_brazil_municipalities.R:23:3', 'test-get_brazil_municipalities.R:44:3', 'test-get_brazil_municipalities.R:50:3', 'test-get_brazil_population.R:23:3', 'test-get_brazil_population.R:40:3', 'test-get_brazil_population.R:46:3', 'test-get_brazil_population.R:52:3', 'test-get_brazil_population.R:59:3', 'test-get_brazil_population.R:65:3', 'test-get_brazil_population.R:72:3', 'test-get_brazil_population.R:79:3', 'test-get_brazil_rate_name.R:24:3', 'test-get_brazil_rate_name.R:37:3', 'test-get_brazil_rate_name.R:50:3', 'test-get_brazil_rate_name.R:63:3', 'test-get_brazil_rate_name.R:71:3', 'test-get_brazil_rate_name.R:83:3', 'test-get_brazil_rates.R:23:3', 'test-get_brazil_rates.R:44:3', 'test-get_brazil_rates.R:55:3', 'test-get_brazil_rates.R:61:3', 'test-get_brazil_unemployment.R:23:3', 'test-get_brazil_unemployment.R:39:3', 'test-get_brazil_unemployment.R:45:3', 'test-get_brazil_unemployment.R:52:3', 'test-get_brazil_unemployment.R:59:3', 'test-get_brazil_unemployment.R:65:3', 'test-get_brazil_unemployment.R:71:3', 'test-get_brazil_unemployment.R:78:3', 'test-get_brazil_unemployment.R:84:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-get_brazil_vehicle_brands.R:24:3'): get_brazil_vehicle_brands() returns a tibble with expected columns for 'carros' ── `result` is not an S3 object ── Failure ('test-get_brazil_vehicle_brands.R:25:3'): get_brazil_vehicle_brands() returns a tibble with expected columns for 'carros' ── all(c("nome", "valor") %in% names(result)) is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_brazil_vehicle_brands.R:30:3'): get_brazil_vehicle_brands() returns a tibble with expected columns for 'motos' ── `result` is not an S3 object ── Failure ('test-get_brazil_vehicle_brands.R:31:3'): get_brazil_vehicle_brands() returns a tibble with expected columns for 'motos' ── all(c("nome", "valor") %in% names(result)) is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_brazil_vehicle_brands.R:36:3'): get_brazil_vehicle_brands() returns a tibble with expected columns for 'caminhoes' ── `result` is not an S3 object ── Failure ('test-get_brazil_vehicle_brands.R:37:3'): get_brazil_vehicle_brands() returns a tibble with expected columns for 'caminhoes' ── all(c("nome", "valor") %in% names(result)) is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_brazil_vehicle_brands.R:47:3'): get_brazil_vehicle_brands() handles empty string input and returns a tibble with error message ── `result` is not an S3 object ── Failure ('test-get_brazil_vehicle_brands.R:48:3'): get_brazil_vehicle_brands() handles empty string input and returns a tibble with error message ── all(c("message") %in% names(result)) || all(c("nome", "valor") %in% names(result)) is not TRUE `actual`: FALSE `expected`: TRUE [ FAIL 8 | WARN 0 | SKIP 145 | PASS 134 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [3s/5s] OK * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [0s/0s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR