- using R Under development (unstable) (2025-10-28 r88973)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-4) 15.2.0
GNU Fortran (Debian 15.2.0-4) 15.2.0
- 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/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/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 ... [8s/11s] 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 ... [6s/7s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [249s/318s] ERROR
Running ‘testthat.R’ [248s/318s]
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-gcc/Work/build/Packages/cancerradarr/extdata/ex_cancerRADAR_input_filled.xlsx
> Reference population aggregation
> Aggregation level: un_region
- Data aggregation..
custom aggregation ===>--------------------------- 10% | ETA: 21s
custom aggregation =======>----------------------- 23% | ETA: 19s
custom aggregation =============>----------------- 45% | ETA: 10s
custom aggregation =================>------------- 55% | ETA: 9s
custom aggregation ===================>----------- 62% | ETA: 9s
custom aggregation ========================>------ 79% | ETA: 5s
custom aggregation ========================>------ 80% | ETA: 5s
custom aggregation ==========================>---- 88% | 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: un_subregion
- Data aggregation..
custom aggregation ==>---------------------------- 6% | ETA: 20s
custom aggregation ==>---------------------------- 7% | ETA: 1m
custom aggregation ===>--------------------------- 10% | ETA: 1m
custom aggregation ====>-------------------------- 14% | ETA: 1m
custom aggregation =====>------------------------- 17% | ETA: 1m
custom aggregation ======>------------------------ 20% | ETA: 1m
custom aggregation =======>----------------------- 24% | ETA: 1m
custom aggregation ========>---------------------- 27% | ETA: 1m
custom aggregation =========>--------------------- 30% | ETA: 1m
custom aggregation ==========>-------------------- 33% | ETA: 1m
custom aggregation =============>----------------- 42% | ETA: 42s
custom aggregation ==============>---------------- 47% | ETA: 39s
custom aggregation ===============>--------------- 49% | ETA: 39s
custom aggregation ================>-------------- 52% | ETA: 38s
custom aggregation ================>-------------- 54% | ETA: 37s
custom aggregation =================>------------- 57% | ETA: 35s
custom aggregation ===================>----------- 63% | ETA: 28s
custom aggregation ====================>---------- 68% | ETA: 25s
custom aggregation =====================>--------- 71% | ETA: 22s
custom aggregation ======================>-------- 74% | ETA: 20s
custom aggregation =======================>------- 77% | ETA: 18s
custom aggregation ========================>------ 80% | ETA: 16s
custom aggregation =========================>----- 83% | ETA: 14s
custom aggregation ==========================>---- 88% | ETA: 10s
custom aggregation ============================>-- 93% | ETA: 5s
custom aggregation =============================>- 97% | ETA: 2s
custom aggregation ==============================> 99% | 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: hdi_cat
- Data aggregation..
custom aggregation =====>------------------------- 18% | ETA: 11s
custom aggregation ========>---------------------- 25% | ETA: 17s
custom aggregation ==============>---------------- 46% | ETA: 10s
custom aggregation ==================>------------ 60% | ETA: 8s
custom aggregation ====================>---------- 68% | ETA: 7s
custom aggregation ========================>------ 80% | ETA: 4s
custom aggregation ============================>-- 92% | 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 =========================>----- 83% | 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 ===>--------------------------- 11% | ETA: 21s
custom aggregation =======>----------------------- 23% | ETA: 20s
custom aggregation ==========>-------------------- 33% | ETA: 18s
custom aggregation ==============>---------------- 46% | ETA: 13s
custom aggregation =================>------------- 57% | ETA: 11s
custom aggregation =============================>- 96% | 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..
> /tmp/RtmpNhN5SX/filed9bb498f815.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 ... [5s/5s] OK
- checking PDF version of manual ... [5s/7s] OK
- checking HTML version of manual ... [0s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR