- using R Under development (unstable) (2025-10-31 r88977)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 19.1.7 (7)
Debian flang-new version 19.1.7 (7)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘cancerradarr/DESCRIPTION’ ... OK
- this is package ‘cancerradarr’ version ‘2.0.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] 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 ‘cancerradarr’ 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/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the package can be unloaded cleanly ... [1s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/3s] OK
- checking loading without being on the library search path ... [2s/2s] 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 ... [12s/16s] 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 ... [1s/1s] 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 ... [8s/12s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [372s/443s] ERROR
Running ‘testthat.R’ [372s/443s]
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(cancerradarr)
>
> test_check("cancerradarr")
processing file: static_report.Rmd
> input_file_test.xlsx has been created, please fill it with cancer registry data
> Reading /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cancerradarr/extdata/ex_cancerRADAR_input_filled.xlsx
> Reference population aggregation
custom aggregation ============>------------------ 42% | ETA: 4s
> Aggregation level: un_region
- Data aggregation..
custom aggregation ==>---------------------------- 8% | ETA: 30s
custom aggregation =====>------------------------- 16% | ETA: 31s
custom aggregation =======>----------------------- 23% | ETA: 31s
custom aggregation ===========>------------------- 38% | ETA: 19s
custom aggregation ==============>---------------- 47% | ETA: 16s
custom aggregation =================>------------- 55% | ETA: 14s
custom aggregation ======================>-------- 73% | ETA: 8s
custom aggregation ========================>------ 79% | ETA: 7s
custom aggregation ========================>------ 80% | ETA: 7s
custom aggregation =========================>----- 84% | ETA: 6s
custom aggregation ==========================>---- 88% | ETA: 5s
- Incidence rates (ir)..
- Proportional rates (pr)..
- Crude incidence rates (cir)..
- Age-standardized incidence rate (asir)..
- Crude incidence rates ratio (cirr)..
- Age-standardized incidence rates ratio (asirr)..
- Crude incidence rates difference (cird)..
- Age-standardized incidence rates difference (asird)..
- Indirect standardized incidence ratio (sir)..
- Proportional incidence ratio (pir)..
- Total number of cancer..
> Aggregation level: un_subregion
- Data aggregation..
custom aggregation ==>---------------------------- 6% | ETA: 1m
custom aggregation ==>---------------------------- 7% | ETA: 2m
custom aggregation ==>---------------------------- 8% | ETA: 2m
custom aggregation ===>--------------------------- 9% | ETA: 2m
custom aggregation ===>--------------------------- 10% | ETA: 2m
custom aggregation ====>-------------------------- 12% | ETA: 2m
custom aggregation ====>-------------------------- 14% | ETA: 2m
custom aggregation =====>------------------------- 15% | ETA: 2m
custom aggregation =====>------------------------- 17% | ETA: 2m
custom aggregation ======>------------------------ 20% | ETA: 2m
custom aggregation =======>----------------------- 22% | ETA: 2m
custom aggregation ========>---------------------- 26% | ETA: 2m
custom aggregation =========>--------------------- 29% | ETA: 2m
custom aggregation =========>--------------------- 30% | ETA: 2m
custom aggregation ==========>-------------------- 33% | ETA: 2m
custom aggregation ===========>------------------- 36% | ETA: 1m
custom aggregation ==============>---------------- 46% | ETA: 1m
custom aggregation ===============>--------------- 49% | ETA: 1m
custom aggregation ================>-------------- 52% | ETA: 1m
custom aggregation ================>-------------- 53% | ETA: 1m
custom aggregation =================>------------- 57% | ETA: 48s
custom aggregation ==================>------------ 59% | ETA: 46s
custom aggregation ====================>---------- 65% | ETA: 37s
custom aggregation ====================>---------- 68% | ETA: 35s
custom aggregation =====================>--------- 70% | ETA: 32s
custom aggregation ======================>-------- 72% | ETA: 30s
custom aggregation =======================>------- 75% | ETA: 26s
custom aggregation ========================>------ 79% | ETA: 23s
custom aggregation ========================>------ 81% | ETA: 20s
custom aggregation =========================>----- 85% | ETA: 16s
custom aggregation ===========================>--- 91% | ETA: 9s
custom aggregation ============================>-- 95% | ETA: 5s
custom aggregation =============================>- 97% | ETA: 3s
- Incidence rates (ir)..
- Proportional rates (pr)..
- Crude incidence rates (cir)..
- Age-standardized incidence rate (asir)..
- Crude incidence rates ratio (cirr)..
- Age-standardized incidence rates ratio (asirr)..
- Crude incidence rates difference (cird)..
- Age-standardized incidence rates difference (asird)..
- Indirect standardized incidence ratio (sir)..
- Proportional incidence ratio (pir)..
- Total number of cancer..
> Aggregation level: hdi_cat
- Data aggregation..
custom aggregation =====>------------------------- 18% | ETA: 21s
custom aggregation =======>----------------------- 24% | ETA: 21s
custom aggregation =========>--------------------- 31% | ETA: 21s
custom aggregation ===============>--------------- 50% | ETA: 13s
custom aggregation ==================>------------ 60% | ETA: 11s
custom aggregation ====================>---------- 65% | ETA: 10s
custom aggregation =======================>------- 76% | ETA: 7s
custom aggregation ==========================>---- 86% | ETA: 4s
custom aggregation ============================>-- 93% | ETA: 2s
- Incidence rates (ir)..
- Proportional rates (pr)..
- Crude incidence rates (cir)..
- Age-standardized incidence rate (asir)..
- Crude incidence rates ratio (cirr)..
- Age-standardized incidence rates ratio (asirr)..
- Crude incidence rates difference (cird)..
- Age-standardized incidence rates difference (asird)..
- Indirect standardized incidence ratio (sir)..
- Proportional incidence ratio (pir)..
- Total number of cancer..
> Aggregation level: any_migr
- Data aggregation..
custom aggregation =====================>--------- 71% | ETA: 1s
- Incidence rates (ir)..
- Proportional rates (pr)..
- Crude incidence rates (cir)..
- Age-standardized incidence rate (asir)..
- Crude incidence rates ratio (cirr)..
- Age-standardized incidence rates ratio (asirr)..
- Crude incidence rates difference (cird)..
- Age-standardized incidence rates difference (asird)..
- Indirect standardized incidence ratio (sir)..
- Proportional incidence ratio (pir)..
- Total number of cancer..
> Aggregation level: asr_rank_cat
- Data aggregation..
custom aggregation ==>---------------------------- 6% | ETA: 34s
custom aggregation =====>------------------------- 15% | ETA: 30s
custom aggregation =======>----------------------- 24% | ETA: 27s
custom aggregation ==========>-------------------- 32% | ETA: 24s
custom aggregation =============>----------------- 43% | ETA: 19s
custom aggregation ===============>--------------- 51% | ETA: 17s
custom aggregation ===================>----------- 62% | ETA: 12s
custom aggregation =============================>- 98% | ETA: 1s
- Incidence rates (ir)..
- Proportional rates (pr)..
- Crude incidence rates (cir)..
- Age-standardized incidence rate (asir)..
- Crude incidence rates ratio (cirr)..
- Age-standardized incidence rates ratio (asirr)..
- Crude incidence rates difference (cird)..
- Age-standardized incidence rates difference (asird)..
- Indirect standardized incidence ratio (sir)..
- Proportional incidence ratio (pir)..
- Total number of cancer..
> /home/hornik/tmp/scratch/RtmpT5bqUU/file28df7646cb2760.xlsx created!
processing file: static_report.Rmd
[ FAIL 2 | WARN 2 | SKIP 0 | PASS 263 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-create_static_report.R:35:5'): create_static_report works with example output file ──
Error in `file(con, "w")`: cannot open the connection
Backtrace:
▆
1. └─cancerradarr::create_static_report(temp_file) at test-create_static_report.R:35:5
2. └─rmarkdown::render(...)
3. └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
4. └─xfun::write_utf8(res, output)
5. └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
6. └─base::file(con, "w")
── Error ('test_cancerradarr.R:38:3'): Output file creation ────────────────────
Error in `file(con, "w")`: cannot open the connection
Backtrace:
▆
1. └─cancerradarr::create_static_report(file.out) at test_cancerradarr.R:38:3
2. └─rmarkdown::render(...)
3. └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
4. └─xfun::write_utf8(res, output)
5. └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
6. └─base::file(con, "w")
[ FAIL 2 | WARN 2 | SKIP 0 | PASS 263 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [6s/6s] OK
- checking PDF version of manual ... [6s/8s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR