Package check result: ERROR Check: CRAN incoming feasibility, Result: NOTE Maintainer: ‘Mohamed A. Yusuf ’ New submission Package was archived on CRAN CRAN repository db overrides: X-CRAN-Comment: Archived on 2025-07-11 as issues were not corrected in time. Check: tests, Result: ERROR Running ‘testthat.R’ [2s/2s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(AgePopDenom) > > test_check("AgePopDenom") -- Processing DHS data and joining with shapefile ------------------------------ i Processing country: KE v Processed country: KE (1 of 2) i Processing country: TZ v Processed country: TZ (2 of 2) -- Process gamma parameters ---------------------------------------------------- i Aggregating and extracting gamma for: KEN x Aggregating and extracting gamma for: KEN ... failed [ FAIL 1 | WARN 0 | SKIP 1 | PASS 14 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-AgePopDenom.R:199:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-AgePopDenom.R:126:3'): process_dhs_data correctly processes DHS survey data ── Error in `purrr::map(unique(binded_dataset$country_code_iso3), function(country_code) { processed_count <<- processed_count + 1 cli::cli_process_start(msg = glue::glue("Aggregating and extracting gamma for: {country_code}"), msg_done = glue::glue("Aggregated and extracted gamma for: {country_code} ", "({processed_count} of {\n length(unique(binded_dataset$country_code_iso3))})")) processed_data <- aggregate_and_extract_gamma(dplyr::filter(binded_dataset, country_code_iso3 == country_code, !is.na(urban) | !is.na(lat) | !is.na(long))) outlier_free_data <- dplyr::mutate(dplyr::ungroup(dplyr::mutate(dplyr::group_by(dplyr::filter(processed_data$outlier_free_data, long != lat), survey_code), year_of_survey = max(year_of_survey, na.rm = TRUE))), country_year = paste0(country, " - ", year_of_survey, " (", survey_code, ")")) age_param_data <- dplyr::mutate(dplyr::ungroup(dplyr::mutate(dplyr::group_by(dplyr::filter(processed_data$age_param_data, lon != lat), survey_code), year_of_survey = max(year_of_survey, na.rm = TRUE))), country_year = paste0(country, " - ", year_of_survey, " (", survey_code, ")")) list(outlier_free_data = outlier_free_data, age_param_data = age_param_data) })`: i In index: 1. Caused by error in `aggregate_and_extract_gamma()`: ! Package 'numDeriv' is required for this function. Please install it with install.packages('numDeriv') Backtrace: ▆ 1. ├─AgePopDenom::process_dhs_data(...) at test-AgePopDenom.R:126:3 2. │ └─purrr::map(...) 3. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 4. │ ├─purrr:::with_indexed_errors(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ ├─purrr:::call_with_cleanup(...) 7. │ └─AgePopDenom (local) .f(.x[[i]], ...) 8. │ └─AgePopDenom::aggregate_and_extract_gamma(...) 9. │ └─base::stop(...) 10. └─base::.handleSimpleError(...) 11. └─purrr (local) h(simpleError(msg, call)) 12. └─cli::cli_abort(...) 13. └─rlang::abort(...) [ FAIL 1 | WARN 0 | SKIP 1 | PASS 14 ] Error: Test failures Execution halted