CRAN Package Check Results for Maintainer ‘Mathieu Laversanne <laversannem at iarc.who.int>’

Last updated on 2025-12-28 03:52:08 CET.

Package ERROR OK
Rcan 1 12

Package Rcan

Current CRAN status: ERROR: 1, OK: 12

Version: 1.3.92
Check: examples
Result: ERROR Running examples in 'Rcan-Ex.R' failed The error most likely occurred in: > ### Name: ICD_group_CI5 > ### Title: ICD10 group detailed example > ### Aliases: ICD_group_CI5 > ### Keywords: datasets > > ### ** Examples > > > > data(ICD_group_CI5) > data(data_individual_file) > > #group individual data by > # 5 year age group > # ICd grouping from dataframe ICD_group_CI5 > > df_data_icd <- csu_group_cases(data_individual_file, + var_age="age", + group_by=c("sex", "regcode", "reglabel"), + df_ICD = ICD_group_CI5, + var_ICD ="site") Warning in csu_group_cases(data_individual_file, var_age = "age", group_by = c("sex", : Warning: 60 cases have age value > 150 and will be considered as unknown age Error in `[.data.table`(dt_data, , `:=`(group_id, .GRP), by = key(dt_data)) : attempt access index 8/8 in VECTOR_ELT Calls: csu_group_cases -> core.csu_group_cases -> [ -> [.data.table Execution halted Flavor: r-devel-windows-x86_64

Version: 1.3.92
Check: tests
Result: ERROR Running 'testthat.R' [5s] Running the tests in 'tests/testthat.R' failed. Complete output: > > > library(testthat) > test_check("Rcan") Loading required package: Rcan Type example(Rcan) to see demo of the function. Saving _problems/test-Rcan-13.R Saving _problems/test-Rcan-34.R Population with less than 18 age group: registry_label nb_age_group <fctr> <num> India, Chennai (Madras) 16 South Australia 17 ASR have been computed for the age group 0-99+ Cumulative risk have been computed for the age group 0-74 ASR have been computed for the age group 0-99+ Saving _problems/test-Rcan-122.R Population with less than 18 age group: registry_label year nb_age_group <fctr> <int> <num> Brazil, Goiania 1988 17 Brazil, Goiania 1989 17 Brazil, Goiania 1990 17 Brazil, Goiania 1991 17 Brazil, Goiania 1992 17 --- --- --- USA, Georgia, Atlanta: Black 2003 17 USA, Georgia, Atlanta: Black 2004 17 USA, Georgia, Atlanta: Black 2005 17 USA, Georgia, Atlanta: Black 2006 17 USA, Georgia, Atlanta: Black 2007 17 ASR have been computed for the age group 0-99+ Saving _problems/test-Rcan-149.R [ FAIL 4 | WARN 3 | SKIP 0 | PASS 3 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-Rcan.R:9:3'): Test csu_group_cases: 1 ────────────────────────── Error in ``[.data.table`(dt_data, , `:=`(group_id, .GRP), by = key(dt_data))`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. └─Rcan::csu_group_cases(...) at test-Rcan.R:9:3 2. └─Rcan:::core.csu_group_cases(...) 3. ├─dt_data[, `:=`(group_id, .GRP), by = key(dt_data)] 4. └─data.table:::`[.data.table`(...) ── Error ('test-Rcan.R:29:3'): Test csu_merge_cases_pop: 1 ───────────────────── Error in ``[.data.table`(dt_data, , `:=`(group_id, .GRP), by = key(dt_data))`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. └─Rcan::csu_group_cases(...) at test-Rcan.R:29:3 2. └─Rcan:::core.csu_group_cases(...) 3. ├─dt_data[, `:=`(group_id, .GRP), by = key(dt_data)] 4. └─data.table:::`[.data.table`(...) ── Error ('test-Rcan.R:120:3'): Test trend: 1 ────────────────────────────────── Error in ``[.data.table`(dt_data, , `:=`(CSU_smooth, loess(CSU_T ~ CSU_Y, span = smoothing)$fitted), by = CSU_BY)`: attempt access index 7/7 in VECTOR_ELT Backtrace: ▆ 1. └─Rcan::csu_time_trend(...) at test-Rcan.R:120:3 2. └─Rcan:::core.csu_time_trend(...) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test-Rcan.R:147:3'): Test eapc: 1 ─────────────────────────────────── Error in ``[.data.table`(dt_data, , `:=`(id_group, .GRP), by = group_by)`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. └─Rcan::csu_eapc(...) at test-Rcan.R:147:3 2. └─Rcan:::core.csu_eapc(...) 3. ├─dt_data[, `:=`(id_group, .GRP), by = group_by] 4. └─data.table:::`[.data.table`(...) [ FAIL 4 | WARN 3 | SKIP 0 | PASS 3 ] Error: ! Test failures. Execution halted Flavor: r-devel-windows-x86_64

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.