* using log directory 'd:/Rcompile/CRANpkg/local/4.4/rdhs.Rcheck' * using R version 4.4.0 (2024-04-24 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'rdhs/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'rdhs' version '0.8.1' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'rdhs' can be installed ... OK * checking installed package size ... 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 ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [1s] OK * checking whether startup messages can be suppressed ... [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 ... [6s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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 ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [110s] ERROR Running examples in 'rdhs-Ex.R' failed The error most likely occurred in: > ### Name: parse_meta > ### Title: Parse fixed-width file metadata > ### Aliases: parse_meta parse_dcf parse_sps parse_do > > ### ** Examples > > mrfl_zip <- tempfile() > download.file("https://dhsprogram.com/data/model_data/dhs/zzmr61fl.zip", + mrfl_zip, mode = "wb") trying URL 'https://dhsprogram.com/data/model_data/dhs/zzmr61fl.zip' Warning in download.file("https://dhsprogram.com/data/model_data/dhs/zzmr61fl.zip", : URL 'https://dhsprogram.com/data/model_data/dhs/zzmr61fl.zip': Timeout of 60 seconds was reached Error in download.file("https://dhsprogram.com/data/model_data/dhs/zzmr61fl.zip", : cannot open URL 'https://dhsprogram.com/data/model_data/dhs/zzmr61fl.zip' Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [108s] ERROR Running 'testthat.R' [107s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(rdhs) Thank you for using rdhs. If you are using rdhs regularly or for automated tasks, please register for your own API key by emailing api@dhsprogram.com. More info at > > Sys.setenv("rdhs_RENVIRON_PERMISSION" = 1) > test_check("rdhs") trying URL 'https://dhsprogram.com/data/model_data/dhs/zzmr61fl.zip' trying URL 'https://dhsprogram.com/data/model_data/hiv/zzar61fl.zip' Content type 'application/x-zip-compressed' length 81939 bytes (80 KB) ================================================== downloaded 80 KB [ FAIL 1 | WARN 1 | SKIP 47 | PASS 19 ] ══ Skipped tests (47) ══════════════════════════════════════════════════════════ • DHS has removed this file (possibly because of what it tested (1): 'test_downloads.R:130:3' • On CRAN (44): 'test_api_calls.R:4:3', 'test_api_endpoints.R:8:3', 'test_api_endpoints.R:116:3', 'test_api_endpoints.R:140:3', 'test_api_endpoints.R:179:3', 'test_api_endpoints.R:193:3', 'test_api_endpoints.R:211:3', 'test_api_endpoints.R:238:3', 'test_api_endpoints.R:252:3', 'test_api_endpoints.R:279:3', 'test_api_endpoints.R:301:3', 'test_api_endpoints.R:322:3', 'test_api_endpoints.R:336:3', 'test_authentication.R:4:3', 'test_authentication.R:23:3', 'test_authentication.R:49:3', 'test_client_set_up.R:4:3', 'test_client_set_up.R:29:3', 'test_downloads.R:4:3', 'test_downloads.R:141:3', 'test_downloads.R:151:3', 'test_downloads.R:166:3', 'test_downloads.R:188:3', 'test_downloads.R:211:3', 'test_downloads.R:226:3', 'test_extraction.R:4:3', 'test_extraction.R:108:3', 'test_extraction.R:125:3', 'test_extraction.R:200:3', 'test_miscellaneous.R:37:3', 'test_miscellaneous.R:95:3', 'test_miscellaneous.R:131:3', 'test_read_dhs_flat.R:68:3', 'test_spatial_boundaries.R:4:3', 'test_spatial_boundaries.R:47:3', 'test_ui.R:4:3', 'test_ui.R:37:3', 'test_ui.R:66:3', 'test_ui.R:96:3', 'test_ui.R:106:3', 'test_ui.R:117:3', 'test_ui.R:127:3', 'test_ui.R:145:3', 'test_ui.R:167:3' • empty test (1): 'test_api_endpoints.R:346:1' • geojson test too heavy an API test (1): 'test_api_endpoints.R:79:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_read_dhs_flat.R:6:3'): datasets parse ────────────────────────── Error in `download.file("https://dhsprogram.com/data/model_data/dhs/zzmr61fl.zip", destfile = mrfl_zip, mode = "wb")`: cannot open URL 'https://dhsprogram.com/data/model_data/dhs/zzmr61fl.zip' Backtrace: ▆ 1. └─utils::download.file(...) at test_read_dhs_flat.R:6:3 [ FAIL 1 | WARN 1 | SKIP 47 | PASS 19 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [16s] OK * checking PDF version of manual ... [23s] OK * checking HTML version of manual ... [9s] OK * DONE Status: 2 ERRORs