- using R version 4.6.0 (2026-04-24)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-16) 15.2.0
GNU Fortran (Debian 15.2.0-16) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-04-25 05:54:46 UTC
- checking for file ‘PNADCperiods/DESCRIPTION’ ... OK
- this is package ‘PNADCperiods’ version ‘0.1.1’
- 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 ‘PNADCperiods’ can be installed ... OK
See the install log for details.
- 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 ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [0s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] 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 ... [13s/17s] OK
- checking Rd files ... [0s/1s] 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 LazyData ... 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 ... [143s/385s] ERROR
Running ‘testthat.R’ [142s/384s]
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(PNADCperiods)
>
> test_check("PNADCperiods")
Saving _problems/test-calibration-correctness-211.R
Saving _problems/test-calibration-correctness-249.R
Saving _problems/test-calibration-correctness-291.R
Saving _problems/test-calibration-correctness-329.R
Saving _problems/test-calibration-correctness-368.R
Saving _problems/test-calibration-correctness-408.R
Saving _problems/test-calibration-correctness-435.R
Saving _problems/test-calibration-correctness-476.R
Attaching package: 'data.table'
The following object is masked from 'package:base':
%notin%
Saving _problems/test-edge-cases-363.R
Saving _problems/test-edge-cases-366.R
Saving _problems/test-integration-pipeline-35.R
Saving _problems/test-integration-pipeline-83.R
Saving _problems/test-integration-pipeline-165.R
Saving _problems/test-integration-pipeline-212.R
Saving _problems/test-integration-pipeline-258.R
Saving _problems/test-integration-pipeline-359.R
Saving _problems/test-integration-pipeline-409.R
Saving _problems/test-pnadc-apply-periods-160.R
Saving _problems/test-pnadc-apply-periods-228.R
Saving _problems/test-pnadc-apply-periods-252.R
Saving _problems/test-pnadc-apply-periods-276.R
Saving _problems/test-pnadc-apply-periods-292.R
[ FAIL 22 | WARN 18 | SKIP 12 | PASS 1472 ]
══ Skipped tests (12) ══════════════════════════════════════════════════════════
• On CRAN (9): 'test-fetch-sidra-population.R:14:3',
'test-fetch-sidra-population.R:34:3', 'test-fetch-sidra-population.R:148:3',
'test-fetch-sidra-population.R:174:3', 'test-fetch-sidra-population.R:199:3',
'test-fetch-sidra-population.R:233:3', 'test-fetch-sidra-population.R:267:3',
'test-fetch-sidra-series.R:398:3', 'test-pnadc-apply-periods.R:167:3'
• empty test (2): 'test-calibration-correctness.R:126:1',
'test-pnadc-identify-periods.R:160:1'
• sidrar is installed, skipping missing package test (1):
'test-fetch-sidra-population.R:5:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-calibration-correctness.R:204:5'): no negative weights are produced in any calibration unit ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10001 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-calibration-correctness.R:204:5
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-calibration-correctness.R:242:3'): anchor='year' produces valid calibrated weights ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-calibration-correctness.R:242:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-calibration-correctness.R:283:3'): indeterminate observations have NA weights ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-calibration-correctness.R:283:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-calibration-correctness.R:321:3'): keep_all=FALSE excludes indeterminate observations ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10001 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-calibration-correctness.R:321:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-calibration-correctness.R:361:3'): calibration works with single quarter data ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-calibration-correctness.R:361:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Failure ('test-calibration-correctness.R:399:3'): calibration handles empty periods gracefully ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
── Error ('test-calibration-correctness.R:427:3'): smooth=TRUE modifies weights differently than smooth=FALSE ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-calibration-correctness.R:427:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-calibration-correctness.R:468:3'): smoothing produces valid non-negative weights ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-calibration-correctness.R:468:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Failure ('test-edge-cases.R:354:3'): zero weights in input handled ──────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
── Error ('test-edge-cases.R:366:3'): zero weights in input handled ────────────
Error in `eval(code, test_env)`: object 'result' not found
Backtrace:
▆
1. └─testthat::expect_true(all(result$weight_monthly >= 0, na.rm = TRUE)) at test-edge-cases.R:366:3
2. └─testthat::quasi_label(enquo(object), label)
3. └─rlang::eval_bare(expr, quo_get_env(quo))
── Error ('test-integration-pipeline.R:27:3'): full pipeline works end-to-end with monthly calibration ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-integration-pipeline.R:27:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-integration-pipeline.R:75:3'): full pipeline works with fortnight calibration ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-integration-pipeline.R:75:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-integration-pipeline.R:157:3'): full pipeline with smoothing produces consistent results ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10003 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-integration-pipeline.R:157:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-integration-pipeline.R:205:3'): pipeline with experimental strategies maintains invariants ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-integration-pipeline.R:205:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-integration-pipeline.R:251:3'): pipeline works with multi-year data (year anchor) ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-integration-pipeline.R:251:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-integration-pipeline.R:351:3'): pipeline with keep_all=FALSE filters correctly ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-integration-pipeline.R:351:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-integration-pipeline.R:402:3'): pipeline produces consistent results with same data ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10003 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-integration-pipeline.R:402:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-pnadc-apply-periods.R:152:3'): pnadc_apply_periods with calibration adds weight column ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-pnadc-apply-periods.R:152:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-pnadc-apply-periods.R:220:3'): pnadc_apply_periods keep_all = TRUE includes undetermined rows ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-pnadc-apply-periods.R:220:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Error ('test-pnadc-apply-periods.R:244:3'): pnadc_apply_periods keep_all = FALSE excludes undetermined rows ──
Error: Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
Backtrace:
▆
1. └─PNADCperiods::pnadc_apply_periods(...) at test-pnadc-apply-periods.R:244:3
2. └─PNADCperiods::fetch_monthly_population(verbose = FALSE)
3. └─base::tryCatch(...)
4. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
5. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. └─value[[3L]](cond)
── Failure ('test-pnadc-apply-periods.R:267:3'): pnadc_apply_periods accepts anchor = 'quarter' ──
Expected `... <- NULL` not to throw any errors.
Actually got a <simpleError> with message:
Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
── Failure ('test-pnadc-apply-periods.R:283:3'): pnadc_apply_periods accepts anchor = 'year' ──
Expected `... <- NULL` not to throw any errors.
Actually got a <simpleError> with message:
Failed to fetch from SIDRA API. Check internet connection.
Error: Timeout was reached [apisidra.ibge.gov.br]:
Connection timed out after 10002 milliseconds
[ FAIL 22 | WARN 18 | SKIP 12 | PASS 1472 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [13s/18s] OK
- checking PDF version of manual ... [5s/8s] OK
- checking HTML version of manual ... [3s/4s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR