* using log directory ‘/data/localhost/ripley/R/packages/tests-BLIS/melodi.Rcheck’ * using R Under development (unstable) (2026-10-08 r90650) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 16.2.1 20260819 (Red Hat 16.2.1-2) GNU Fortran (GCC) 16.2.1 20260819 (Red Hat 16.2.1-2) * running under: Fedora Linux 44 (Server Edition) * using session charset: UTF-8 * current time: 2026-10-09 07:57:47 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘melodi/DESCRIPTION’ ... OK * this is package ‘melodi’ version ‘1.1.2’ * 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 ‘melodi’ can be installed ... OK * checking package directory ... 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking whether startup messages can be suppressed ... 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 ... OK * checking Rd files ... 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... ERROR Running examples in ‘melodi-Ex.R’ failed The error most likely occurred in: > ### Name: get_all_data > ### Title: Get all data from a dataset > ### Aliases: get_all_data > > ### ** Examples > > data <- get_all_data("DS_TICM_PRATIQUES") Request dataset : https://api.insee.fr/melodi/catalog/DS_TICM_PRATIQUES Request ZIP CSV file : https://api-diffusion-catalogue-donnees-externe.insee.fr/file/DS_TICM_PRATIQUES/DS_TICM_PRATIQUES_CSV_FR Error in `httr2::req_perform()`: ! Failed to perform HTTP request. Caused by error in `curl::curl_fetch_disk()`: ! Could not resolve hostname [api-diffusion-catalogue-donnees-externe.insee.fr]: Could not resolve host: api-diffusion-catalogue-donnees-externe.insee.fr Backtrace: ▆ 1. └─melodi::get_all_data("DS_TICM_PRATIQUES") 2. └─httr2::req_perform(...) 3. └─httr2:::handle_resp(req, resp, error_call = error_call) 4. └─rlang::cnd_signal(resp) Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ ERROR 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(melodi) > > test_check("melodi") Request dataset : https://api.insee.fr/melodi/catalog/DS_SRCV_CONFIANCE Request ZIP CSV file : https://api-diffusion-catalogue-donnees-externe.insee.fr/file/DS_SRCV_CONFIANCE/DS_SRCV_CONFIANCE_2025_CSV_FR Saving _problems/test-get_all_data-8.R Saving _problems/test-get_all_data-14.R Request dataset : https://api.insee.fr/melodi/catalog/DD_CNA_BRANCHES Request ZIP CSV file : https://api-diffusion-catalogue-donnees-externe.insee.fr/file/DD_CNA_BRANCHES/DD_CNA_BRANCHES_CSV_FR Saving _problems/test-get_all_data-38.R Saving _problems/test-get_all_data-44.R Request dataset : https://api.insee.fr/melodi/catalog/DS_SRCV_CONFIANCE Request ZIP CSV file : https://api-diffusion-catalogue-donnees-externe.insee.fr/file/DS_SRCV_CONFIANCE/DS_SRCV_CONFIANCE_2025_CSV_FR Saving _problems/test-get_all_data-71.R Saving _problems/test-get_all_data-77.R Request dataset : https://api.insee.fr/melodi/catalog/DS_TICM_PRATIQUES Request ZIP CSV file : https://api-diffusion-catalogue-donnees-externe.insee.fr/file/DS_TICM_PRATIQUES/DS_TICM_PRATIQUES_CSV_FR Saving _problems/test-get_all_data-84.R Saving _problems/test-get_all_data-90.R Request dataset : https://api.insee.fr/melodi/catalog/DS_NEXISTEPAS Request all catalog : https://api.insee.fr/melodi/catalog/all Request all catalog : https://api.insee.fr/melodi/catalog/all Total count request : https://api.insee.fr/melodi/data/DS_POPULATIONS_REFERENCE?FREQ=A&GEO=COM-44109&totalCount=TRUE&maxResult=0 Number of lines : 3 Total count request : https://api.insee.fr/melodi/data/DS_POPULATIONS_REFERENCE?TIME_PERIOD=1900&GEO=COM-44109&totalCount=TRUE&maxResult=0 Number of lines : 0 Total count request : https://api.insee.fr/melodi/data/DS_POPULATIONS_REFERENCE?totalCount=TRUE&maxResult=0 Number of lines : 106 065 Total count request : https://api.insee.fr/melodi/data/DS_NEXISTEPAS?totalCount=TRUE&maxResult=0 Total count request : https://api.insee.fr/melodi/data/DS_IPC_PRINC?IND_TYPE=IX&GEO=DEP-974&TIME_PERIOD=2026-01&PRODUCT_GROUP=4000&totalCount=TRUE&maxResult=0 Number of lines : 1 Request file : https://api.insee.fr/melodi/file/DS_EC_DECES/T1_DECES_JOUR_NAT_FR Downloaded path : /tmp/RtmpZ38Blf/working_dir/Rtmpd8vSmF/TEST2.XLSX Total count request : https://api.insee.fr/melodi/data/DS_POPULATIONS_REFERENCE?GEO=DEP-69&totalCount=TRUE&maxResult=0 Number of lines : 3 Total count request : https://api.insee.fr/melodi/data/DS_POPULATIONS_REFERENCE?GEO=DEP-69&POPREF_MEASURE=PMUN&totalCount=TRUE&maxResult=0 Number of lines : 1 Total count request : https://api.insee.fr/melodi/data/DS_POPULATIONS_REFERENCE?GEO=EPCI-244400404%2ACOM&totalCount=TRUE&maxResult=0 Number of lines : 72 Total count request : https://api.insee.fr/melodi/data/DS_POPULATIONS_REFERENCE?GEO=EPCI-244400404%2ACOM&POPREF_MEASURE=PMUN&totalCount=TRUE&maxResult=0 Number of lines : 24 Request dataset : https://api.insee.fr/melodi/catalog/DS_EC_DECES Request dataset range : https://api.insee.fr/melodi/range/DS_SUIVI_DDE_TOUR Request dataset range : https://api.insee.fr/melodi/range/DS_SUIVI_DDE_TOUR Request dataset range : https://api.insee.fr/melodi/range/DS_SUIVI_DDE_TOUR Request dataset range : https://api.insee.fr/melodi/range/DS_SUIVI_DDE_TOUR Request dataset range : https://api.insee.fr/melodi/range/DS_EC_DECES Request dataset range : https://api.insee.fr/melodi/range/DS_IPCH_M [ FAIL 8 | WARN 0 | SKIP 0 | PASS 40 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-get_all_data.R:5:3'): get all data OK ──────────────────────── Expected `ds <- get_all_data("DS_SRCV_CONFIANCE")` not to throw any errors. Actually got a with message: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_disk()`: ! Could not resolve hostname [api-diffusion-catalogue-donnees-externe.insee.fr]: Could not resolve host: api-diffusion-catalogue-donnees-externe.insee.fr ── Error ('test-get_all_data.R:11:3'): get all data OK ───────────────────────── Error in `eval(code, test_env)`: object 'ds' not found Backtrace: ▆ 1. ├─testthat::expect_gt(object = nrow(ds), expected = 0) at test-get_all_data.R:11:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─base::nrow(ds) ── Failure ('test-get_all_data.R:35:3'): get all data OK with malformed metadata ── Expected `ds <- get_all_data("DD_CNA_BRANCHES")` not to throw any errors. Actually got a with message: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_disk()`: ! Could not resolve hostname [api-diffusion-catalogue-donnees-externe.insee.fr]: Could not resolve host: api-diffusion-catalogue-donnees-externe.insee.fr ── Error ('test-get_all_data.R:41:3'): get all data OK with malformed metadata ── Error in `eval(code, test_env)`: object 'ds' not found Backtrace: ▆ 1. ├─testthat::expect_gt(object = nrow(ds), expected = 0) at test-get_all_data.R:41:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─base::nrow(ds) ── Failure ('test-get_all_data.R:65:3'): get stringAsFactor OK ───────────────── Expected `ds <- get_all_data(ds_name = "DS_SRCV_CONFIANCE", stringsAsFactors = TRUE)` not to throw any errors. Actually got a with message: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_disk()`: ! Could not resolve hostname [api-diffusion-catalogue-donnees-externe.insee.fr]: Could not resolve host: api-diffusion-catalogue-donnees-externe.insee.fr ── Error ('test-get_all_data.R:74:3'): get stringAsFactor OK ─────────────────── Error in `eval(code, test_env)`: object 'ds' not found Backtrace: ▆ 1. └─testthat::expect_s3_class(object = ds$OBS_STATUS, class = "factor") at test-get_all_data.R:74:3 2. └─testthat::quasi_label(enquo(object)) 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-get_all_data.R:81:3'): get all data national sans GEO ──────── Expected `ds <- get_all_data("DS_TICM_PRATIQUES")` not to throw any errors. Actually got a with message: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_disk()`: ! Could not resolve hostname [api-diffusion-catalogue-donnees-externe.insee.fr]: Could not resolve host: api-diffusion-catalogue-donnees-externe.insee.fr ── Error ('test-get_all_data.R:87:3'): get all data national sans GEO ────────── Error in `eval(code, test_env)`: object 'ds' not found Backtrace: ▆ 1. ├─testthat::expect_gt(object = nrow(ds), expected = 0) at test-get_all_data.R:87:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─base::nrow(ds) [ FAIL 8 | WARN 0 | SKIP 0 | PASS 40 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [15s/22s] OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs See ‘/data/localhost/ripley/R/packages/tests-BLIS/melodi.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:18.82, 38.38 + 6.49