Last updated on 2020-11-27 11:53:28 CET.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.6.3 | 8.18 | 57.79 | 65.97 | ERROR | |
r-devel-linux-x86_64-debian-gcc | 0.6.3 | 5.89 | 45.57 | 51.46 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 0.6.3 | 80.72 | ERROR | |||
r-devel-linux-x86_64-fedora-gcc | 0.6.3 | 71.36 | ERROR | |||
r-devel-windows-ix86+x86_64 | 0.6.3 | 14.00 | 59.00 | 73.00 | ERROR | |
r-patched-linux-x86_64 | 0.6.3 | 7.16 | 58.98 | 66.14 | ERROR | |
r-patched-solaris-x86 | 0.6.3 | 93.60 | ERROR | |||
r-release-linux-x86_64 | 0.6.3 | 6.76 | 55.47 | 62.23 | ERROR | |
r-release-macos-x86_64 | 0.6.3 | OK | ||||
r-release-windows-ix86+x86_64 | 0.6.3 | 13.00 | 65.00 | 78.00 | ERROR | |
r-oldrel-macos-x86_64 | 0.6.3 | OK | ||||
r-oldrel-windows-ix86+x86_64 | 0.6.3 | 10.00 | 77.00 | 87.00 | ERROR |
Version: 0.6.3
Check: examples
Result: ERROR
Running examples in 'rdhs-Ex.R' failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: parse_map
> ### Title: Create dictionary from DHS .MAP codebook
> ### Aliases: parse_map
>
> ### ** Examples
>
> mrdt_zip <- tempfile()
> download.file(
+ paste0(
+ "https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm",
+ "?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs"),
+ mrdt_zip, mode="wb"
+ )
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
>
> map <- rdhs::read_zipdata(mrdt_zip, "\\.MAP", readLines)
Error in unzip(zfile, list = TRUE) :
zip file '/tmp/Rtmp21o6od/file79d04d30b2b2' cannot be opened
Calls: <Anonymous> -> grep -> unzip
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.6.3
Check: tests
Result: ERROR
Running 'testthat.R' [3s/7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(rdhs)
>
> Sys.setenv("rdhs_RENVIRON_PERMISSION" = 1)
> test_check("rdhs")
-- Skip (test_api_calls.R:4:3): can request api through dhs_api_request via clie
Reason: On CRAN
-- Skip (test_api_endpoints.R:8:3): format catches and all_results tests -------
Reason: On CRAN
-- Skip (test_api_endpoints.R:79:3): geojson works -----------------------------
Reason: geojson test too heavy an API test
-- Skip (test_api_endpoints.R:116:3): dhs_countries works ----------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:140:3): dhs_data works ---------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:179:3): dhs_dataUpdates works --------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:193:3): dhs_datasets works -----------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:211:3): dhs_indicators works ---------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:238:3): dhs_info works ---------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:252:3): dhs_publications works -------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:279:3): dhs_survey_characteristics works ---------
Reason: On CRAN
-- Skip (test_api_endpoints.R:301:3): dhs_surveys works ------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:322:3): dhs_tags works ---------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:336:3): dhs_uiUpdates works ----------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:346:1): post api tidy ----------------------------
Reason: empty test
-- Skip (test_authentication.R:4:3): authenticate_dhs works --------------------
Reason: On CRAN
-- Skip (test_authentication.R:23:3): available_surveys works ------------------
Reason: On CRAN
-- Skip (test_client_set_up.R:4:3): save credentials ---------------------------
Reason: On CRAN
-- Skip (test_client_set_up.R:29:3): new updates are recognised ----------------
Reason: On CRAN
-- Skip (test_downloads.R:4:3): available surveys and download work ------------
Reason: On CRAN
-- Skip (test_downloads.R:130:3): ETAR71FL.ZIP test ----------------------------
Reason: DHS has removed this file (possibly because of what it tested
-- Skip (test_downloads.R:141:3): ugir41fl.zip test ----------------------------
Reason: On CRAN
-- Skip (test_downloads.R:151:3): zip file ending test -------------------------
Reason: On CRAN
-- Skip (test_downloads.R:163:3): Hierarchal and sas7bdat dataset test ---------
Reason: On CRAN
-- Skip (test_downloads.R:185:3): Geo dataset test -----------------------------
Reason: On CRAN
-- Skip (test_downloads.R:205:3): Geospatial coviarates ------------------------
Reason: On CRAN
-- Skip (test_extraction.R:4:3): query codes having downloaded surveys ---------
Reason: On CRAN
-- Skip (test_extraction.R:108:3): surveyId in extract -------------------------
Reason: On CRAN
-- Skip (test_extraction.R:125:3): rbind_labelled ------------------------------
Reason: On CRAN
-- Skip (test_extraction.R:200:3): add_geo issue for Kenya ---------------------
Reason: On CRAN
-- Skip (test_miscellaneous.R:37:3): slow api response -------------------------
Reason: On CRAN
-- Skip (test_miscellaneous.R:63:3): different locales -------------------------
Reason: OS can't test different locale test
-- Skip (test_miscellaneous.R:95:3): update_rdhs_config ------------------------
Reason: On CRAN
-- Skip (test_miscellaneous.R:131:3): model datasets onAttach ------------------
Reason: On CRAN
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61FL.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
-- ERROR (test_read_dhs_flat.R:13:3): datasets parse ---------------------------
Error: zip file '/tmp/RtmpIrSeWz/file273454194aa' cannot be opened
Backtrace:
x
1. \-rdhs:::read_dhs_flat(mrfl_zip) test_read_dhs_flat.R:13:2
2. +-base::grepl("\\.DCF$", unzip(zfile, list = TRUE)$Name, ignore.case = TRUE)
3. \-utils::unzip(zfile, list = TRUE)
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZAR61FL.ZIP&Tp=4&Ctry_Code=zz&survey_id=0&doctype=hiv'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
-- ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file w
Error: zip file '/tmp/RtmpIrSeWz/file2731dcf00c0' cannot be opened
Backtrace:
x
1. \-rdhs::read_zipdata(arfl_zip, "\\.DCF", readLines) test_read_dhs_flat.R:57:2
2. +-base::grep(...)
3. \-utils::unzip(zfile, list = TRUE)
-- Skip (test_read_dhs_flat.R:74:3): lower case flat file check ----------------
Reason: On CRAN
-- Skip (test_ui.R:4:3): check_for_client --------------------------------------
Reason: On CRAN
-- Skip (test_ui.R:37:3): check on the use of the default client for API caching
Reason: On CRAN
-- Skip (test_ui.R:66:3): get_datasets with no temp first ----------------------
Reason: On CRAN
-- Skip (test_ui.R:96:3): get_model_datasets -----------------------------------
Reason: On CRAN
-- Skip (test_ui.R:106:3): get_downloaded_datasets -----------------------------
Reason: On CRAN
-- Skip (test_ui.R:117:3): get_available_datasets ------------------------------
Reason: On CRAN
-- Skip (test_ui.R:127:3): search_and_extract_dhs ------------------------------
Reason: On CRAN
-- Skip (test_ui.R:145:3): get_variable_labels ---------------------------------
Reason: On CRAN
-- Skip (test_ui.R:167:3): get_variable_labels direct via client ---------------
Reason: On CRAN
-- Skipped tests --------------------------------------------------------------
* DHS has removed this file (possibly because of what it tested (1)
* OS can't test different locale test (1)
* On CRAN (40)
* empty test (1)
* geojson test too heavy an API test (1)
== testthat results ===========================================================
ERROR (test_read_dhs_flat.R:13:3): datasets parse
ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file width
[ FAIL 2 | WARN 0 | SKIP 44 | PASS 14 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.6.3
Check: examples
Result: ERROR
Running examples in ‘rdhs-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: parse_map
> ### Title: Create dictionary from DHS .MAP codebook
> ### Aliases: parse_map
>
> ### ** Examples
>
> mrdt_zip <- tempfile()
> download.file(
+ paste0(
+ "https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm",
+ "?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs"),
+ mrdt_zip, mode="wb"
+ )
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
>
> map <- rdhs::read_zipdata(mrdt_zip, "\\.MAP", readLines)
Error in unzip(zfile, list = TRUE) :
zip file '/home/hornik/tmp/scratch/RtmpxeQkxF/file7e97d9637d7' cannot be opened
Calls: <Anonymous> -> grep -> unzip
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6.3
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(rdhs)
>
> Sys.setenv("rdhs_RENVIRON_PERMISSION" = 1)
> test_check("rdhs")
── Skip (test_api_calls.R:4:3): can request api through dhs_api_request via clie
Reason: On CRAN
── Skip (test_api_endpoints.R:8:3): format catches and all_results tests ───────
Reason: On CRAN
── Skip (test_api_endpoints.R:79:3): geojson works ─────────────────────────────
Reason: geojson test too heavy an API test
── Skip (test_api_endpoints.R:116:3): dhs_countries works ──────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:140:3): dhs_data works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:179:3): dhs_dataUpdates works ────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:193:3): dhs_datasets works ───────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:211:3): dhs_indicators works ─────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:238:3): dhs_info works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:252:3): dhs_publications works ───────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:279:3): dhs_survey_characteristics works ─────────
Reason: On CRAN
── Skip (test_api_endpoints.R:301:3): dhs_surveys works ────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:322:3): dhs_tags works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:336:3): dhs_uiUpdates works ──────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:346:1): post api tidy ────────────────────────────
Reason: empty test
── Skip (test_authentication.R:4:3): authenticate_dhs works ────────────────────
Reason: On CRAN
── Skip (test_authentication.R:23:3): available_surveys works ──────────────────
Reason: On CRAN
── Skip (test_client_set_up.R:4:3): save credentials ───────────────────────────
Reason: On CRAN
── Skip (test_client_set_up.R:29:3): new updates are recognised ────────────────
Reason: On CRAN
── Skip (test_downloads.R:4:3): available surveys and download work ────────────
Reason: On CRAN
── Skip (test_downloads.R:130:3): ETAR71FL.ZIP test ────────────────────────────
Reason: DHS has removed this file (possibly because of what it tested
── Skip (test_downloads.R:141:3): ugir41fl.zip test ────────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:151:3): zip file ending test ─────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:163:3): Hierarchal and sas7bdat dataset test ─────────
Reason: On CRAN
── Skip (test_downloads.R:185:3): Geo dataset test ─────────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:205:3): Geospatial coviarates ────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:4:3): query codes having downloaded surveys ─────────
Reason: On CRAN
── Skip (test_extraction.R:108:3): surveyId in extract ─────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:125:3): rbind_labelled ──────────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:200:3): add_geo issue for Kenya ─────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:37:3): slow api response ─────────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:63:3): different locales ─────────────────────────
Reason: OS can't test different locale test
── Skip (test_miscellaneous.R:95:3): update_rdhs_config ────────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:131:3): model datasets onAttach ──────────────────
Reason: On CRAN
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61FL.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
── ERROR (test_read_dhs_flat.R:13:3): datasets parse ───────────────────────────
Error: zip file '/home/hornik/tmp/scratch/RtmpaOqWwS/filed1b168e9680' cannot be opened
Backtrace:
█
1. └─rdhs:::read_dhs_flat(mrfl_zip) test_read_dhs_flat.R:13:2
2. ├─base::grepl("\\.DCF$", unzip(zfile, list = TRUE)$Name, ignore.case = TRUE)
3. └─utils::unzip(zfile, list = TRUE)
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZAR61FL.ZIP&Tp=4&Ctry_Code=zz&survey_id=0&doctype=hiv'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
── ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file w
Error: zip file '/home/hornik/tmp/scratch/RtmpaOqWwS/filed1b1d33ed8b' cannot be opened
Backtrace:
█
1. └─rdhs::read_zipdata(arfl_zip, "\\.DCF", readLines) test_read_dhs_flat.R:57:2
2. ├─base::grep(...)
3. └─utils::unzip(zfile, list = TRUE)
── Skip (test_read_dhs_flat.R:74:3): lower case flat file check ────────────────
Reason: On CRAN
── Skip (test_ui.R:4:3): check_for_client ──────────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:37:3): check on the use of the default client for API caching
Reason: On CRAN
── Skip (test_ui.R:66:3): get_datasets with no temp first ──────────────────────
Reason: On CRAN
── Skip (test_ui.R:96:3): get_model_datasets ───────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:106:3): get_downloaded_datasets ─────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:117:3): get_available_datasets ──────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:127:3): search_and_extract_dhs ──────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:145:3): get_variable_labels ─────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:167:3): get_variable_labels direct via client ───────────────
Reason: On CRAN
── Skipped tests ──────────────────────────────────────────────────────────────
● DHS has removed this file (possibly because of what it tested (1)
● OS can't test different locale test (1)
● On CRAN (40)
● empty test (1)
● geojson test too heavy an API test (1)
══ testthat results ═══════════════════════════════════════════════════════════
ERROR (test_read_dhs_flat.R:13:3): datasets parse
ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file width
[ FAIL 2 | WARN 0 | SKIP 44 | PASS 14 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6.3
Check: examples
Result: ERROR
Running examples in ‘rdhs-Ex.R’ failed
The error most likely occurred in:
> ### Name: parse_map
> ### Title: Create dictionary from DHS .MAP codebook
> ### Aliases: parse_map
>
> ### ** Examples
>
> mrdt_zip <- tempfile()
> download.file(
+ paste0(
+ "https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm",
+ "?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs"),
+ mrdt_zip, mode="wb"
+ )
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
>
> map <- rdhs::read_zipdata(mrdt_zip, "\\.MAP", readLines)
Error in unzip(zfile, list = TRUE) :
zip file '/tmp/Rtmp3Wpicd/working_dir/RtmpGwBMLO/file33f5534ac50286' cannot be opened
Calls: <Anonymous> -> grep -> unzip
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.6.3
Check: tests
Result: ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(rdhs)
>
> Sys.setenv("rdhs_RENVIRON_PERMISSION" = 1)
> test_check("rdhs")
── Skip (test_api_calls.R:4:3): can request api through dhs_api_request via clie
Reason: On CRAN
── Skip (test_api_endpoints.R:8:3): format catches and all_results tests ───────
Reason: On CRAN
── Skip (test_api_endpoints.R:79:3): geojson works ─────────────────────────────
Reason: geojson test too heavy an API test
── Skip (test_api_endpoints.R:116:3): dhs_countries works ──────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:140:3): dhs_data works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:179:3): dhs_dataUpdates works ────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:193:3): dhs_datasets works ───────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:211:3): dhs_indicators works ─────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:238:3): dhs_info works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:252:3): dhs_publications works ───────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:279:3): dhs_survey_characteristics works ─────────
Reason: On CRAN
── Skip (test_api_endpoints.R:301:3): dhs_surveys works ────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:322:3): dhs_tags works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:336:3): dhs_uiUpdates works ──────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:346:1): post api tidy ────────────────────────────
Reason: empty test
── Skip (test_authentication.R:4:3): authenticate_dhs works ────────────────────
Reason: On CRAN
── Skip (test_authentication.R:23:3): available_surveys works ──────────────────
Reason: On CRAN
── Skip (test_client_set_up.R:4:3): save credentials ───────────────────────────
Reason: On CRAN
── Skip (test_client_set_up.R:29:3): new updates are recognised ────────────────
Reason: On CRAN
── Skip (test_downloads.R:4:3): available surveys and download work ────────────
Reason: On CRAN
── Skip (test_downloads.R:130:3): ETAR71FL.ZIP test ────────────────────────────
Reason: DHS has removed this file (possibly because of what it tested
── Skip (test_downloads.R:141:3): ugir41fl.zip test ────────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:151:3): zip file ending test ─────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:163:3): Hierarchal and sas7bdat dataset test ─────────
Reason: On CRAN
── Skip (test_downloads.R:185:3): Geo dataset test ─────────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:205:3): Geospatial coviarates ────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:4:3): query codes having downloaded surveys ─────────
Reason: On CRAN
── Skip (test_extraction.R:108:3): surveyId in extract ─────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:125:3): rbind_labelled ──────────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:200:3): add_geo issue for Kenya ─────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:37:3): slow api response ─────────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:63:3): different locales ─────────────────────────
Reason: OS can't test different locale test
── Skip (test_miscellaneous.R:95:3): update_rdhs_config ────────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:131:3): model datasets onAttach ──────────────────
Reason: On CRAN
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61FL.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
── ERROR (test_read_dhs_flat.R:13:3): datasets parse ───────────────────────────
Error: zip file '/tmp/Rtmp3Wpicd/working_dir/RtmpRdWsdi/file33f88d6c92d7c9' cannot be opened
Backtrace:
█
1. └─rdhs:::read_dhs_flat(mrfl_zip) test_read_dhs_flat.R:13:2
2. ├─base::grepl("\\.DCF$", unzip(zfile, list = TRUE)$Name, ignore.case = TRUE)
3. └─utils::unzip(zfile, list = TRUE)
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZAR61FL.ZIP&Tp=4&Ctry_Code=zz&survey_id=0&doctype=hiv'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
── ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file w
Error: zip file '/tmp/Rtmp3Wpicd/working_dir/RtmpRdWsdi/file33f88d3658fa1d' cannot be opened
Backtrace:
█
1. └─rdhs::read_zipdata(arfl_zip, "\\.DCF", readLines) test_read_dhs_flat.R:57:2
2. ├─base::grep(...)
3. └─utils::unzip(zfile, list = TRUE)
── Skip (test_read_dhs_flat.R:74:3): lower case flat file check ────────────────
Reason: On CRAN
── Skip (test_ui.R:4:3): check_for_client ──────────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:37:3): check on the use of the default client for API caching
Reason: On CRAN
── Skip (test_ui.R:66:3): get_datasets with no temp first ──────────────────────
Reason: On CRAN
── Skip (test_ui.R:96:3): get_model_datasets ───────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:106:3): get_downloaded_datasets ─────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:117:3): get_available_datasets ──────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:127:3): search_and_extract_dhs ──────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:145:3): get_variable_labels ─────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:167:3): get_variable_labels direct via client ───────────────
Reason: On CRAN
── Skipped tests ──────────────────────────────────────────────────────────────
● DHS has removed this file (possibly because of what it tested (1)
● OS can't test different locale test (1)
● On CRAN (40)
● empty test (1)
● geojson test too heavy an API test (1)
══ testthat results ═══════════════════════════════════════════════════════════
ERROR (test_read_dhs_flat.R:13:3): datasets parse
ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file width
[ FAIL 2 | WARN 0 | SKIP 44 | PASS 14 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.6.3
Check: examples
Result: ERROR
Running examples in ‘rdhs-Ex.R’ failed
The error most likely occurred in:
> ### Name: parse_map
> ### Title: Create dictionary from DHS .MAP codebook
> ### Aliases: parse_map
>
> ### ** Examples
>
> mrdt_zip <- tempfile()
> download.file(
+ paste0(
+ "https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm",
+ "?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs"),
+ mrdt_zip, mode="wb"
+ )
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
>
> map <- rdhs::read_zipdata(mrdt_zip, "\\.MAP", readLines)
Error in unzip(zfile, list = TRUE) :
zip file '/tmp/RtmpUeMMsg/working_dir/RtmpFN56GI/file2987eb6560290a' cannot be opened
Calls: <Anonymous> -> grep -> unzip
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.6.3
Check: tests
Result: ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(rdhs)
>
> Sys.setenv("rdhs_RENVIRON_PERMISSION" = 1)
> test_check("rdhs")
── Skip (test_api_calls.R:4:3): can request api through dhs_api_request via clie
Reason: On CRAN
── Skip (test_api_endpoints.R:8:3): format catches and all_results tests ───────
Reason: On CRAN
── Skip (test_api_endpoints.R:79:3): geojson works ─────────────────────────────
Reason: geojson test too heavy an API test
── Skip (test_api_endpoints.R:116:3): dhs_countries works ──────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:140:3): dhs_data works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:179:3): dhs_dataUpdates works ────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:193:3): dhs_datasets works ───────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:211:3): dhs_indicators works ─────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:238:3): dhs_info works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:252:3): dhs_publications works ───────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:279:3): dhs_survey_characteristics works ─────────
Reason: On CRAN
── Skip (test_api_endpoints.R:301:3): dhs_surveys works ────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:322:3): dhs_tags works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:336:3): dhs_uiUpdates works ──────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:346:1): post api tidy ────────────────────────────
Reason: empty test
── Skip (test_authentication.R:4:3): authenticate_dhs works ────────────────────
Reason: On CRAN
── Skip (test_authentication.R:23:3): available_surveys works ──────────────────
Reason: On CRAN
── Skip (test_client_set_up.R:4:3): save credentials ───────────────────────────
Reason: On CRAN
── Skip (test_client_set_up.R:29:3): new updates are recognised ────────────────
Reason: On CRAN
── Skip (test_downloads.R:4:3): available surveys and download work ────────────
Reason: On CRAN
── Skip (test_downloads.R:130:3): ETAR71FL.ZIP test ────────────────────────────
Reason: DHS has removed this file (possibly because of what it tested
── Skip (test_downloads.R:141:3): ugir41fl.zip test ────────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:151:3): zip file ending test ─────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:163:3): Hierarchal and sas7bdat dataset test ─────────
Reason: On CRAN
── Skip (test_downloads.R:185:3): Geo dataset test ─────────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:205:3): Geospatial coviarates ────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:4:3): query codes having downloaded surveys ─────────
Reason: On CRAN
── Skip (test_extraction.R:108:3): surveyId in extract ─────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:125:3): rbind_labelled ──────────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:200:3): add_geo issue for Kenya ─────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:37:3): slow api response ─────────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:63:3): different locales ─────────────────────────
Reason: OS can't test different locale test
── Skip (test_miscellaneous.R:95:3): update_rdhs_config ────────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:131:3): model datasets onAttach ──────────────────
Reason: On CRAN
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61FL.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
── ERROR (test_read_dhs_flat.R:13:3): datasets parse ───────────────────────────
Error: zip file '/tmp/RtmpUeMMsg/working_dir/RtmpQ7090m/file298a3943ecbbdc' cannot be opened
Backtrace:
█
1. └─rdhs:::read_dhs_flat(mrfl_zip) test_read_dhs_flat.R:13:2
2. ├─base::grepl("\\.DCF$", unzip(zfile, list = TRUE)$Name, ignore.case = TRUE)
3. └─utils::unzip(zfile, list = TRUE)
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZAR61FL.ZIP&Tp=4&Ctry_Code=zz&survey_id=0&doctype=hiv'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
── ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file w
Error: zip file '/tmp/RtmpUeMMsg/working_dir/RtmpQ7090m/file298a3954606f9e' cannot be opened
Backtrace:
█
1. └─rdhs::read_zipdata(arfl_zip, "\\.DCF", readLines) test_read_dhs_flat.R:57:2
2. ├─base::grep(...)
3. └─utils::unzip(zfile, list = TRUE)
── Skip (test_read_dhs_flat.R:74:3): lower case flat file check ────────────────
Reason: On CRAN
── Skip (test_ui.R:4:3): check_for_client ──────────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:37:3): check on the use of the default client for API caching
Reason: On CRAN
── Skip (test_ui.R:66:3): get_datasets with no temp first ──────────────────────
Reason: On CRAN
── Skip (test_ui.R:96:3): get_model_datasets ───────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:106:3): get_downloaded_datasets ─────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:117:3): get_available_datasets ──────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:127:3): search_and_extract_dhs ──────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:145:3): get_variable_labels ─────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:167:3): get_variable_labels direct via client ───────────────
Reason: On CRAN
── Skipped tests ──────────────────────────────────────────────────────────────
● DHS has removed this file (possibly because of what it tested (1)
● OS can't test different locale test (1)
● On CRAN (40)
● empty test (1)
● geojson test too heavy an API test (1)
══ testthat results ═══════════════════════════════════════════════════════════
ERROR (test_read_dhs_flat.R:13:3): datasets parse
ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file width
[ FAIL 2 | WARN 0 | SKIP 44 | PASS 14 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.6.3
Check: examples
Result: ERROR
Running examples in 'rdhs-Ex.R' failed
The error most likely occurred in:
> ### Name: parse_map
> ### Title: Create dictionary from DHS .MAP codebook
> ### Aliases: parse_map
>
> ### ** Examples
>
> mrdt_zip <- tempfile()
> download.file(
+ paste0(
+ "https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm",
+ "?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs"),
+ mrdt_zip, mode="wb"
+ )
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
>
> map <- rdhs::read_zipdata(mrdt_zip, "\\.MAP", readLines)
Error in unzip(zfile, list = TRUE) :
zip file 'D:\temp\RtmpOaLlfS\file1a4b4121f5eef' cannot be opened
Calls: <Anonymous> -> grep -> unzip
Execution halted
Flavor: r-devel-windows-ix86+x86_64
Version: 0.6.3
Check: tests
Result: ERROR
Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(rdhs)
>
> Sys.setenv("rdhs_RENVIRON_PERMISSION" = 1)
> test_check("rdhs")
-- Skip (test_api_calls.R:4:3): can request api through dhs_api_request via clie
Reason: On CRAN
-- Skip (test_api_endpoints.R:8:3): format catches and all_results tests -------
Reason: On CRAN
-- Skip (test_api_endpoints.R:79:3): geojson works -----------------------------
Reason: geojson test too heavy an API test
-- Skip (test_api_endpoints.R:116:3): dhs_countries works ----------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:140:3): dhs_data works ---------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:179:3): dhs_dataUpdates works --------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:193:3): dhs_datasets works -----------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:211:3): dhs_indicators works ---------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:238:3): dhs_info works ---------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:252:3): dhs_publications works -------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:279:3): dhs_survey_characteristics works ---------
Reason: On CRAN
-- Skip (test_api_endpoints.R:301:3): dhs_surveys works ------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:322:3): dhs_tags works ---------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:336:3): dhs_uiUpdates works ----------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:346:1): post api tidy ----------------------------
Reason: empty test
-- Skip (test_authentication.R:4:3): authenticate_dhs works --------------------
Reason: On CRAN
-- Skip (test_authentication.R:23:3): available_surveys works ------------------
Reason: On CRAN
-- Skip (test_client_set_up.R:4:3): save credentials ---------------------------
Reason: On CRAN
-- Skip (test_client_set_up.R:29:3): new updates are recognised ----------------
Reason: On CRAN
-- Skip (test_downloads.R:4:3): available surveys and download work ------------
Reason: On CRAN
-- Skip (test_downloads.R:130:3): ETAR71FL.ZIP test ----------------------------
Reason: DHS has removed this file (possibly because of what it tested
-- Skip (test_downloads.R:141:3): ugir41fl.zip test ----------------------------
Reason: On CRAN
-- Skip (test_downloads.R:151:3): zip file ending test -------------------------
Reason: On CRAN
-- Skip (test_downloads.R:163:3): Hierarchal and sas7bdat dataset test ---------
Reason: On CRAN
-- Skip (test_downloads.R:185:3): Geo dataset test -----------------------------
Reason: On CRAN
-- Skip (test_downloads.R:205:3): Geospatial coviarates ------------------------
Reason: On CRAN
-- Skip (test_extraction.R:4:3): query codes having downloaded surveys ---------
Reason: On CRAN
-- Skip (test_extraction.R:108:3): surveyId in extract -------------------------
Reason: On CRAN
-- Skip (test_extraction.R:125:3): rbind_labelled ------------------------------
Reason: On CRAN
-- Skip (test_extraction.R:200:3): add_geo issue for Kenya ---------------------
Reason: On CRAN
-- Skip (test_miscellaneous.R:37:3): slow api response -------------------------
Reason: On CRAN
-- Skip (test_miscellaneous.R:95:3): update_rdhs_config ------------------------
Reason: On CRAN
-- Skip (test_miscellaneous.R:131:3): model datasets onAttach ------------------
Reason: On CRAN
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61FL.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
-- ERROR (test_read_dhs_flat.R:13:3): datasets parse ---------------------------
Error: zip file 'D:\temp\RtmpkBwU3I\file2e2ec38456190' cannot be opened
Backtrace:
x
1. \-rdhs:::read_dhs_flat(mrfl_zip) test_read_dhs_flat.R:13:2
2. +-base::grepl("\\.DCF$", unzip(zfile, list = TRUE)$Name, ignore.case = TRUE)
3. \-utils::unzip(zfile, list = TRUE)
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZAR61FL.ZIP&Tp=4&Ctry_Code=zz&survey_id=0&doctype=hiv'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
-- ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file w
Error: zip file 'D:\temp\RtmpkBwU3I\file2e2ec4db258cc' cannot be opened
Backtrace:
x
1. \-rdhs::read_zipdata(arfl_zip, "\\.DCF", readLines) test_read_dhs_flat.R:57:2
2. +-base::grep(...)
3. \-utils::unzip(zfile, list = TRUE)
-- Skip (test_read_dhs_flat.R:74:3): lower case flat file check ----------------
Reason: On CRAN
-- Skip (test_ui.R:4:3): check_for_client --------------------------------------
Reason: On CRAN
-- Skip (test_ui.R:37:3): check on the use of the default client for API caching
Reason: On CRAN
-- Skip (test_ui.R:66:3): get_datasets with no temp first ----------------------
Reason: On CRAN
-- Skip (test_ui.R:96:3): get_model_datasets -----------------------------------
Reason: On CRAN
-- Skip (test_ui.R:106:3): get_downloaded_datasets -----------------------------
Reason: On CRAN
-- Skip (test_ui.R:117:3): get_available_datasets ------------------------------
Reason: On CRAN
-- Skip (test_ui.R:127:3): search_and_extract_dhs ------------------------------
Reason: On CRAN
-- Skip (test_ui.R:145:3): get_variable_labels ---------------------------------
Reason: On CRAN
-- Skip (test_ui.R:167:3): get_variable_labels direct via client ---------------
Reason: On CRAN
-- Skipped tests --------------------------------------------------------------
* DHS has removed this file (possibly because of what it tested (1)
* On CRAN (40)
* empty test (1)
* geojson test too heavy an API test (1)
== testthat results ===========================================================
ERROR (test_read_dhs_flat.R:13:3): datasets parse
ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file width
[ FAIL 2 | WARN 0 | SKIP 43 | PASS 15 ]
Error: Test failures
Execution halted
Flavor: r-devel-windows-ix86+x86_64
Version: 0.6.3
Check: examples
Result: ERROR
Running examples in ‘rdhs-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: parse_map
> ### Title: Create dictionary from DHS .MAP codebook
> ### Aliases: parse_map
>
> ### ** Examples
>
> mrdt_zip <- tempfile()
> download.file(
+ paste0(
+ "https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm",
+ "?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs"),
+ mrdt_zip, mode="wb"
+ )
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
>
> map <- rdhs::read_zipdata(mrdt_zip, "\\.MAP", readLines)
Error in unzip(zfile, list = TRUE) :
zip file '/tmp/Rtmpz412mi/file89545a1ba1d' cannot be opened
Calls: <Anonymous> -> grep -> unzip
Execution halted
Flavor: r-patched-linux-x86_64
Version: 0.6.3
Check: tests
Result: ERROR
Running ‘testthat.R’ [3s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(rdhs)
>
> Sys.setenv("rdhs_RENVIRON_PERMISSION" = 1)
> test_check("rdhs")
── Skip (test_api_calls.R:4:3): can request api through dhs_api_request via clie
Reason: On CRAN
── Skip (test_api_endpoints.R:8:3): format catches and all_results tests ───────
Reason: On CRAN
── Skip (test_api_endpoints.R:79:3): geojson works ─────────────────────────────
Reason: geojson test too heavy an API test
── Skip (test_api_endpoints.R:116:3): dhs_countries works ──────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:140:3): dhs_data works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:179:3): dhs_dataUpdates works ────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:193:3): dhs_datasets works ───────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:211:3): dhs_indicators works ─────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:238:3): dhs_info works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:252:3): dhs_publications works ───────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:279:3): dhs_survey_characteristics works ─────────
Reason: On CRAN
── Skip (test_api_endpoints.R:301:3): dhs_surveys works ────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:322:3): dhs_tags works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:336:3): dhs_uiUpdates works ──────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:346:1): post api tidy ────────────────────────────
Reason: empty test
── Skip (test_authentication.R:4:3): authenticate_dhs works ────────────────────
Reason: On CRAN
── Skip (test_authentication.R:23:3): available_surveys works ──────────────────
Reason: On CRAN
── Skip (test_client_set_up.R:4:3): save credentials ───────────────────────────
Reason: On CRAN
── Skip (test_client_set_up.R:29:3): new updates are recognised ────────────────
Reason: On CRAN
── Skip (test_downloads.R:4:3): available surveys and download work ────────────
Reason: On CRAN
── Skip (test_downloads.R:130:3): ETAR71FL.ZIP test ────────────────────────────
Reason: DHS has removed this file (possibly because of what it tested
── Skip (test_downloads.R:141:3): ugir41fl.zip test ────────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:151:3): zip file ending test ─────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:163:3): Hierarchal and sas7bdat dataset test ─────────
Reason: On CRAN
── Skip (test_downloads.R:185:3): Geo dataset test ─────────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:205:3): Geospatial coviarates ────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:4:3): query codes having downloaded surveys ─────────
Reason: On CRAN
── Skip (test_extraction.R:108:3): surveyId in extract ─────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:125:3): rbind_labelled ──────────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:200:3): add_geo issue for Kenya ─────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:37:3): slow api response ─────────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:63:3): different locales ─────────────────────────
Reason: OS can't test different locale test
── Skip (test_miscellaneous.R:95:3): update_rdhs_config ────────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:131:3): model datasets onAttach ──────────────────
Reason: On CRAN
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61FL.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
── ERROR (test_read_dhs_flat.R:13:3): datasets parse ───────────────────────────
Error: zip file '/tmp/RtmpEEEixJ/file100b575cb972' cannot be opened
Backtrace:
█
1. └─rdhs:::read_dhs_flat(mrfl_zip) test_read_dhs_flat.R:13:2
2. ├─base::grepl("\\.DCF$", unzip(zfile, list = TRUE)$Name, ignore.case = TRUE)
3. └─utils::unzip(zfile, list = TRUE)
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZAR61FL.ZIP&Tp=4&Ctry_Code=zz&survey_id=0&doctype=hiv'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
── ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file w
Error: zip file '/tmp/RtmpEEEixJ/file100b12da5342' cannot be opened
Backtrace:
█
1. └─rdhs::read_zipdata(arfl_zip, "\\.DCF", readLines) test_read_dhs_flat.R:57:2
2. ├─base::grep(...)
3. └─utils::unzip(zfile, list = TRUE)
── Skip (test_read_dhs_flat.R:74:3): lower case flat file check ────────────────
Reason: On CRAN
── Skip (test_ui.R:4:3): check_for_client ──────────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:37:3): check on the use of the default client for API caching
Reason: On CRAN
── Skip (test_ui.R:66:3): get_datasets with no temp first ──────────────────────
Reason: On CRAN
── Skip (test_ui.R:96:3): get_model_datasets ───────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:106:3): get_downloaded_datasets ─────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:117:3): get_available_datasets ──────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:127:3): search_and_extract_dhs ──────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:145:3): get_variable_labels ─────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:167:3): get_variable_labels direct via client ───────────────
Reason: On CRAN
── Skipped tests ──────────────────────────────────────────────────────────────
● DHS has removed this file (possibly because of what it tested (1)
● OS can't test different locale test (1)
● On CRAN (40)
● empty test (1)
● geojson test too heavy an API test (1)
══ testthat results ═══════════════════════════════════════════════════════════
ERROR (test_read_dhs_flat.R:13:3): datasets parse
ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file width
[ FAIL 2 | WARN 0 | SKIP 44 | PASS 14 ]
Error: Test failures
Execution halted
Flavor: r-patched-linux-x86_64
Version: 0.6.3
Check: examples
Result: ERROR
Running examples in ‘rdhs-Ex.R’ failed
The error most likely occurred in:
> ### Name: parse_map
> ### Title: Create dictionary from DHS .MAP codebook
> ### Aliases: parse_map
>
> ### ** Examples
>
> mrdt_zip <- tempfile()
> download.file(
+ paste0(
+ "https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm",
+ "?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs"),
+ mrdt_zip, mode="wb"
+ )
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 48624 bytes (47 KB)
==================================================
downloaded 47 KB
>
> map <- rdhs::read_zipdata(mrdt_zip, "\\.MAP", readLines)
Error in unzip(zfile, list = TRUE) :
zip file '/tmp/RtmpmtaGZ3/working_dir/Rtmp8vaWRh/filef5e69896cbc' cannot be opened
Calls: <Anonymous> -> grep -> unzip
Execution halted
Flavor: r-patched-solaris-x86
Version: 0.6.3
Check: tests
Result: ERROR
Running ‘testthat.R’ [4s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(rdhs)
>
> Sys.setenv("rdhs_RENVIRON_PERMISSION" = 1)
> test_check("rdhs")
── Skip (test_api_calls.R:4:3): can request api through dhs_api_request via clie
Reason: On CRAN
── Skip (test_api_endpoints.R:8:3): format catches and all_results tests ───────
Reason: On CRAN
── Skip (test_api_endpoints.R:79:3): geojson works ─────────────────────────────
Reason: geojson test too heavy an API test
── Skip (test_api_endpoints.R:116:3): dhs_countries works ──────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:140:3): dhs_data works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:179:3): dhs_dataUpdates works ────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:193:3): dhs_datasets works ───────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:211:3): dhs_indicators works ─────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:238:3): dhs_info works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:252:3): dhs_publications works ───────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:279:3): dhs_survey_characteristics works ─────────
Reason: On CRAN
── Skip (test_api_endpoints.R:301:3): dhs_surveys works ────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:322:3): dhs_tags works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:336:3): dhs_uiUpdates works ──────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:346:1): post api tidy ────────────────────────────
Reason: empty test
── Skip (test_authentication.R:4:3): authenticate_dhs works ────────────────────
Reason: On CRAN
── Skip (test_authentication.R:23:3): available_surveys works ──────────────────
Reason: On CRAN
── Skip (test_client_set_up.R:4:3): save credentials ───────────────────────────
Reason: On CRAN
── Skip (test_client_set_up.R:29:3): new updates are recognised ────────────────
Reason: On CRAN
── Skip (test_downloads.R:4:3): available surveys and download work ────────────
Reason: On CRAN
── Skip (test_downloads.R:130:3): ETAR71FL.ZIP test ────────────────────────────
Reason: DHS has removed this file (possibly because of what it tested
── Skip (test_downloads.R:141:3): ugir41fl.zip test ────────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:151:3): zip file ending test ─────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:163:3): Hierarchal and sas7bdat dataset test ─────────
Reason: On CRAN
── Skip (test_downloads.R:185:3): Geo dataset test ─────────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:205:3): Geospatial coviarates ────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:4:3): query codes having downloaded surveys ─────────
Reason: On CRAN
── Skip (test_extraction.R:108:3): surveyId in extract ─────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:125:3): rbind_labelled ──────────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:200:3): add_geo issue for Kenya ─────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:37:3): slow api response ─────────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:63:3): different locales ─────────────────────────
Reason: OS can't test different locale test
── Skip (test_miscellaneous.R:95:3): update_rdhs_config ────────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:131:3): model datasets onAttach ──────────────────
Reason: On CRAN
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61FL.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 48624 bytes (47 KB)
==================================================
downloaded 47 KB
── ERROR (test_read_dhs_flat.R:13:3): datasets parse ───────────────────────────
Error: zip file '/tmp/RtmpmtaGZ3/working_dir/Rtmp.FaOck/file14151607768f' cannot be opened
Backtrace:
█
1. └─rdhs:::read_dhs_flat(mrfl_zip) test_read_dhs_flat.R:13:2
2. ├─base::grepl("\\.DCF$", unzip(zfile, list = TRUE)$Name, ignore.case = TRUE)
3. └─utils::unzip(zfile, list = TRUE)
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZAR61FL.ZIP&Tp=4&Ctry_Code=zz&survey_id=0&doctype=hiv'
Content type 'text/html;charset=UTF-8' length 48624 bytes (47 KB)
==================================================
downloaded 47 KB
── ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file w
Error: zip file '/tmp/RtmpmtaGZ3/working_dir/Rtmp.FaOck/file141514aec8' cannot be opened
Backtrace:
█
1. └─rdhs::read_zipdata(arfl_zip, "\\.DCF", readLines) test_read_dhs_flat.R:57:2
2. ├─base::grep(...)
3. └─utils::unzip(zfile, list = TRUE)
── Skip (test_read_dhs_flat.R:74:3): lower case flat file check ────────────────
Reason: On CRAN
── Skip (test_ui.R:4:3): check_for_client ──────────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:37:3): check on the use of the default client for API caching
Reason: On CRAN
── Skip (test_ui.R:66:3): get_datasets with no temp first ──────────────────────
Reason: On CRAN
── Skip (test_ui.R:96:3): get_model_datasets ───────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:106:3): get_downloaded_datasets ─────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:117:3): get_available_datasets ──────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:127:3): search_and_extract_dhs ──────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:145:3): get_variable_labels ─────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:167:3): get_variable_labels direct via client ───────────────
Reason: On CRAN
── Skipped tests ──────────────────────────────────────────────────────────────
● DHS has removed this file (possibly because of what it tested (1)
● OS can't test different locale test (1)
● On CRAN (40)
● empty test (1)
● geojson test too heavy an API test (1)
══ testthat results ═══════════════════════════════════════════════════════════
ERROR (test_read_dhs_flat.R:13:3): datasets parse
ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file width
[ FAIL 2 | WARN 0 | SKIP 44 | PASS 14 ]
Error: Test failures
Execution halted
Flavor: r-patched-solaris-x86
Version: 0.6.3
Check: examples
Result: ERROR
Running examples in ‘rdhs-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: parse_map
> ### Title: Create dictionary from DHS .MAP codebook
> ### Aliases: parse_map
>
> ### ** Examples
>
> mrdt_zip <- tempfile()
> download.file(
+ paste0(
+ "https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm",
+ "?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs"),
+ mrdt_zip, mode="wb"
+ )
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
>
> map <- rdhs::read_zipdata(mrdt_zip, "\\.MAP", readLines)
Error in unzip(zfile, list = TRUE) :
zip file '/tmp/Rtmp2eQV2i/file414e4dbcc263' cannot be opened
Calls: <Anonymous> -> grep -> unzip
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.6.3
Check: tests
Result: ERROR
Running ‘testthat.R’ [3s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(rdhs)
>
> Sys.setenv("rdhs_RENVIRON_PERMISSION" = 1)
> test_check("rdhs")
── Skip (test_api_calls.R:4:3): can request api through dhs_api_request via clie
Reason: On CRAN
── Skip (test_api_endpoints.R:8:3): format catches and all_results tests ───────
Reason: On CRAN
── Skip (test_api_endpoints.R:79:3): geojson works ─────────────────────────────
Reason: geojson test too heavy an API test
── Skip (test_api_endpoints.R:116:3): dhs_countries works ──────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:140:3): dhs_data works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:179:3): dhs_dataUpdates works ────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:193:3): dhs_datasets works ───────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:211:3): dhs_indicators works ─────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:238:3): dhs_info works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:252:3): dhs_publications works ───────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:279:3): dhs_survey_characteristics works ─────────
Reason: On CRAN
── Skip (test_api_endpoints.R:301:3): dhs_surveys works ────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:322:3): dhs_tags works ───────────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:336:3): dhs_uiUpdates works ──────────────────────
Reason: On CRAN
── Skip (test_api_endpoints.R:346:1): post api tidy ────────────────────────────
Reason: empty test
── Skip (test_authentication.R:4:3): authenticate_dhs works ────────────────────
Reason: On CRAN
── Skip (test_authentication.R:23:3): available_surveys works ──────────────────
Reason: On CRAN
── Skip (test_client_set_up.R:4:3): save credentials ───────────────────────────
Reason: On CRAN
── Skip (test_client_set_up.R:29:3): new updates are recognised ────────────────
Reason: On CRAN
── Skip (test_downloads.R:4:3): available surveys and download work ────────────
Reason: On CRAN
── Skip (test_downloads.R:130:3): ETAR71FL.ZIP test ────────────────────────────
Reason: DHS has removed this file (possibly because of what it tested
── Skip (test_downloads.R:141:3): ugir41fl.zip test ────────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:151:3): zip file ending test ─────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:163:3): Hierarchal and sas7bdat dataset test ─────────
Reason: On CRAN
── Skip (test_downloads.R:185:3): Geo dataset test ─────────────────────────────
Reason: On CRAN
── Skip (test_downloads.R:205:3): Geospatial coviarates ────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:4:3): query codes having downloaded surveys ─────────
Reason: On CRAN
── Skip (test_extraction.R:108:3): surveyId in extract ─────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:125:3): rbind_labelled ──────────────────────────────
Reason: On CRAN
── Skip (test_extraction.R:200:3): add_geo issue for Kenya ─────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:37:3): slow api response ─────────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:63:3): different locales ─────────────────────────
Reason: OS can't test different locale test
── Skip (test_miscellaneous.R:95:3): update_rdhs_config ────────────────────────
Reason: On CRAN
── Skip (test_miscellaneous.R:131:3): model datasets onAttach ──────────────────
Reason: On CRAN
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61FL.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
── ERROR (test_read_dhs_flat.R:13:3): datasets parse ───────────────────────────
Error: zip file '/tmp/RtmpwyyAhz/file484a7649aea5' cannot be opened
Backtrace:
█
1. └─rdhs:::read_dhs_flat(mrfl_zip) test_read_dhs_flat.R:13:2
2. ├─base::grepl("\\.DCF$", unzip(zfile, list = TRUE)$Name, ignore.case = TRUE)
3. └─utils::unzip(zfile, list = TRUE)
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZAR61FL.ZIP&Tp=4&Ctry_Code=zz&survey_id=0&doctype=hiv'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
── ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file w
Error: zip file '/tmp/RtmpwyyAhz/file484a30f641e3' cannot be opened
Backtrace:
█
1. └─rdhs::read_zipdata(arfl_zip, "\\.DCF", readLines) test_read_dhs_flat.R:57:2
2. ├─base::grep(...)
3. └─utils::unzip(zfile, list = TRUE)
── Skip (test_read_dhs_flat.R:74:3): lower case flat file check ────────────────
Reason: On CRAN
── Skip (test_ui.R:4:3): check_for_client ──────────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:37:3): check on the use of the default client for API caching
Reason: On CRAN
── Skip (test_ui.R:66:3): get_datasets with no temp first ──────────────────────
Reason: On CRAN
── Skip (test_ui.R:96:3): get_model_datasets ───────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:106:3): get_downloaded_datasets ─────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:117:3): get_available_datasets ──────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:127:3): search_and_extract_dhs ──────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:145:3): get_variable_labels ─────────────────────────────────
Reason: On CRAN
── Skip (test_ui.R:167:3): get_variable_labels direct via client ───────────────
Reason: On CRAN
── Skipped tests ──────────────────────────────────────────────────────────────
● DHS has removed this file (possibly because of what it tested (1)
● OS can't test different locale test (1)
● On CRAN (40)
● empty test (1)
● geojson test too heavy an API test (1)
══ testthat results ═══════════════════════════════════════════════════════════
ERROR (test_read_dhs_flat.R:13:3): datasets parse
ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file width
[ FAIL 2 | WARN 0 | SKIP 44 | PASS 14 ]
Error: Test failures
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.6.3
Check: examples
Result: ERROR
Running examples in 'rdhs-Ex.R' failed
The error most likely occurred in:
> ### Name: parse_map
> ### Title: Create dictionary from DHS .MAP codebook
> ### Aliases: parse_map
>
> ### ** Examples
>
> mrdt_zip <- tempfile()
> download.file(
+ paste0(
+ "https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm",
+ "?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs"),
+ mrdt_zip, mode="wb"
+ )
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
>
> map <- rdhs::read_zipdata(mrdt_zip, "\\.MAP", readLines)
Error in unzip(zfile, list = TRUE) :
zip file 'D:\temp\RtmpMTOpYu\file2fd541562cf1' cannot be opened
Calls: <Anonymous> -> grep -> unzip
Execution halted
Flavor: r-release-windows-ix86+x86_64
Version: 0.6.3
Check: tests
Result: ERROR
Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(rdhs)
>
> Sys.setenv("rdhs_RENVIRON_PERMISSION" = 1)
> test_check("rdhs")
-- Skip (test_api_calls.R:4:3): can request api through dhs_api_request via clie
Reason: On CRAN
-- Skip (test_api_endpoints.R:8:3): format catches and all_results tests -------
Reason: On CRAN
-- Skip (test_api_endpoints.R:79:3): geojson works -----------------------------
Reason: geojson test too heavy an API test
-- Skip (test_api_endpoints.R:116:3): dhs_countries works ----------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:140:3): dhs_data works ---------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:179:3): dhs_dataUpdates works --------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:193:3): dhs_datasets works -----------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:211:3): dhs_indicators works ---------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:238:3): dhs_info works ---------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:252:3): dhs_publications works -------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:279:3): dhs_survey_characteristics works ---------
Reason: On CRAN
-- Skip (test_api_endpoints.R:301:3): dhs_surveys works ------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:322:3): dhs_tags works ---------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:336:3): dhs_uiUpdates works ----------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:346:1): post api tidy ----------------------------
Reason: empty test
-- Skip (test_authentication.R:4:3): authenticate_dhs works --------------------
Reason: On CRAN
-- Skip (test_authentication.R:23:3): available_surveys works ------------------
Reason: On CRAN
-- Skip (test_client_set_up.R:4:3): save credentials ---------------------------
Reason: On CRAN
-- Skip (test_client_set_up.R:29:3): new updates are recognised ----------------
Reason: On CRAN
-- Skip (test_downloads.R:4:3): available surveys and download work ------------
Reason: On CRAN
-- Skip (test_downloads.R:130:3): ETAR71FL.ZIP test ----------------------------
Reason: DHS has removed this file (possibly because of what it tested
-- Skip (test_downloads.R:141:3): ugir41fl.zip test ----------------------------
Reason: On CRAN
-- Skip (test_downloads.R:151:3): zip file ending test -------------------------
Reason: On CRAN
-- Skip (test_downloads.R:163:3): Hierarchal and sas7bdat dataset test ---------
Reason: On CRAN
-- Skip (test_downloads.R:185:3): Geo dataset test -----------------------------
Reason: On CRAN
-- Skip (test_downloads.R:205:3): Geospatial coviarates ------------------------
Reason: On CRAN
-- Skip (test_extraction.R:4:3): query codes having downloaded surveys ---------
Reason: On CRAN
-- Skip (test_extraction.R:108:3): surveyId in extract -------------------------
Reason: On CRAN
-- Skip (test_extraction.R:125:3): rbind_labelled ------------------------------
Reason: On CRAN
-- Skip (test_extraction.R:200:3): add_geo issue for Kenya ---------------------
Reason: On CRAN
-- Skip (test_miscellaneous.R:37:3): slow api response -------------------------
Reason: On CRAN
-- Skip (test_miscellaneous.R:95:3): update_rdhs_config ------------------------
Reason: On CRAN
-- Skip (test_miscellaneous.R:131:3): model datasets onAttach ------------------
Reason: On CRAN
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61FL.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
-- ERROR (test_read_dhs_flat.R:13:3): datasets parse ---------------------------
Error: zip file 'D:\temp\RtmpQt8uLt\file2074429b76549' cannot be opened
Backtrace:
x
1. \-rdhs:::read_dhs_flat(mrfl_zip) test_read_dhs_flat.R:13:2
2. +-base::grepl("\\.DCF$", unzip(zfile, list = TRUE)$Name, ignore.case = TRUE)
3. \-utils::unzip(zfile, list = TRUE)
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZAR61FL.ZIP&Tp=4&Ctry_Code=zz&survey_id=0&doctype=hiv'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
-- ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file w
Error: zip file 'D:\temp\RtmpQt8uLt\file207441501e36' cannot be opened
Backtrace:
x
1. \-rdhs::read_zipdata(arfl_zip, "\\.DCF", readLines) test_read_dhs_flat.R:57:2
2. +-base::grep(...)
3. \-utils::unzip(zfile, list = TRUE)
-- Skip (test_read_dhs_flat.R:74:3): lower case flat file check ----------------
Reason: On CRAN
-- Skip (test_ui.R:4:3): check_for_client --------------------------------------
Reason: On CRAN
-- Skip (test_ui.R:37:3): check on the use of the default client for API caching
Reason: On CRAN
-- Skip (test_ui.R:66:3): get_datasets with no temp first ----------------------
Reason: On CRAN
-- Skip (test_ui.R:96:3): get_model_datasets -----------------------------------
Reason: On CRAN
-- Skip (test_ui.R:106:3): get_downloaded_datasets -----------------------------
Reason: On CRAN
-- Skip (test_ui.R:117:3): get_available_datasets ------------------------------
Reason: On CRAN
-- Skip (test_ui.R:127:3): search_and_extract_dhs ------------------------------
Reason: On CRAN
-- Skip (test_ui.R:145:3): get_variable_labels ---------------------------------
Reason: On CRAN
-- Skip (test_ui.R:167:3): get_variable_labels direct via client ---------------
Reason: On CRAN
-- Skipped tests --------------------------------------------------------------
* DHS has removed this file (possibly because of what it tested (1)
* On CRAN (40)
* empty test (1)
* geojson test too heavy an API test (1)
== testthat results ===========================================================
ERROR (test_read_dhs_flat.R:13:3): datasets parse
ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file width
[ FAIL 2 | WARN 0 | SKIP 43 | PASS 15 ]
Error: Test failures
Execution halted
Flavor: r-release-windows-ix86+x86_64
Version: 0.6.3
Check: examples
Result: ERROR
Running examples in 'rdhs-Ex.R' failed
The error most likely occurred in:
> ### Name: parse_map
> ### Title: Create dictionary from DHS .MAP codebook
> ### Aliases: parse_map
>
> ### ** Examples
>
> mrdt_zip <- tempfile()
> download.file(
+ paste0(
+ "https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm",
+ "?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs"),
+ mrdt_zip, mode="wb"
+ )
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61DT.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
>
> map <- rdhs::read_zipdata(mrdt_zip, "\\.MAP", readLines)
Error in unzip(zfile, list = TRUE) :
zip file 'D:\temp\RtmpaMTGPW\file6178539d1714' cannot be opened
Calls: <Anonymous> -> grep -> unzip
Execution halted
Flavor: r-oldrel-windows-ix86+x86_64
Version: 0.6.3
Check: tests
Result: ERROR
Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(rdhs)
>
> Sys.setenv("rdhs_RENVIRON_PERMISSION" = 1)
> test_check("rdhs")
-- Skip (test_api_calls.R:4:3): can request api through dhs_api_request via clie
Reason: On CRAN
-- Skip (test_api_endpoints.R:8:3): format catches and all_results tests -------
Reason: On CRAN
-- Skip (test_api_endpoints.R:79:3): geojson works -----------------------------
Reason: geojson test too heavy an API test
-- Skip (test_api_endpoints.R:116:3): dhs_countries works ----------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:140:3): dhs_data works ---------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:179:3): dhs_dataUpdates works --------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:193:3): dhs_datasets works -----------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:211:3): dhs_indicators works ---------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:238:3): dhs_info works ---------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:252:3): dhs_publications works -------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:279:3): dhs_survey_characteristics works ---------
Reason: On CRAN
-- Skip (test_api_endpoints.R:301:3): dhs_surveys works ------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:322:3): dhs_tags works ---------------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:336:3): dhs_uiUpdates works ----------------------
Reason: On CRAN
-- Skip (test_api_endpoints.R:346:1): post api tidy ----------------------------
Reason: empty test
-- Skip (test_authentication.R:4:3): authenticate_dhs works --------------------
Reason: On CRAN
-- Skip (test_authentication.R:23:3): available_surveys works ------------------
Reason: On CRAN
-- Skip (test_client_set_up.R:4:3): save credentials ---------------------------
Reason: On CRAN
-- Skip (test_client_set_up.R:29:3): new updates are recognised ----------------
Reason: On CRAN
-- Skip (test_downloads.R:4:3): available surveys and download work ------------
Reason: On CRAN
-- Skip (test_downloads.R:130:3): ETAR71FL.ZIP test ----------------------------
Reason: DHS has removed this file (possibly because of what it tested
-- Skip (test_downloads.R:141:3): ugir41fl.zip test ----------------------------
Reason: On CRAN
-- Skip (test_downloads.R:151:3): zip file ending test -------------------------
Reason: On CRAN
-- Skip (test_downloads.R:163:3): Hierarchal and sas7bdat dataset test ---------
Reason: On CRAN
-- Skip (test_downloads.R:185:3): Geo dataset test -----------------------------
Reason: On CRAN
-- Skip (test_downloads.R:205:3): Geospatial coviarates ------------------------
Reason: On CRAN
-- Skip (test_extraction.R:4:3): query codes having downloaded surveys ---------
Reason: On CRAN
-- Skip (test_extraction.R:108:3): surveyId in extract -------------------------
Reason: On CRAN
-- Skip (test_extraction.R:125:3): rbind_labelled ------------------------------
Reason: On CRAN
-- Skip (test_extraction.R:200:3): add_geo issue for Kenya ---------------------
Reason: On CRAN
-- Skip (test_miscellaneous.R:37:3): slow api response -------------------------
Reason: On CRAN
-- Skip (test_miscellaneous.R:95:3): update_rdhs_config ------------------------
Reason: On CRAN
-- Skip (test_miscellaneous.R:131:3): model datasets onAttach ------------------
Reason: On CRAN
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZMR61FL.ZIP&Tp=1&Ctry_Code=zz&survey_id=0&doctype=dhs'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
-- ERROR (test_read_dhs_flat.R:13:3): datasets parse ---------------------------
Error: zip file 'D:\temp\RtmpyijQpe\file199cc36796908' cannot be opened
Backtrace:
x
1. \-rdhs:::read_dhs_flat(mrfl_zip) test_read_dhs_flat.R:13:2
2. +-base::grepl("\\.DCF$", unzip(zfile, list = TRUE)$Name, ignore.case = TRUE)
3. \-utils::unzip(zfile, list = TRUE)
trying URL 'https://dhsprogram.com/customcf/legacy/data/sample_download_dataset.cfm?Filename=ZZAR61FL.ZIP&Tp=4&Ctry_Code=zz&survey_id=0&doctype=hiv'
Content type 'text/html;charset=UTF-8' length 54698 bytes (53 KB)
==================================================
downloaded 53 KB
-- ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file w
Error: zip file 'D:\temp\RtmpyijQpe\file199cc4e063268' cannot be opened
Backtrace:
x
1. \-rdhs::read_zipdata(arfl_zip, "\\.DCF", readLines) test_read_dhs_flat.R:57:2
2. +-base::grep(...)
3. \-utils::unzip(zfile, list = TRUE)
-- Skip (test_read_dhs_flat.R:74:3): lower case flat file check ----------------
Reason: On CRAN
-- Skip (test_ui.R:4:3): check_for_client --------------------------------------
Reason: On CRAN
-- Skip (test_ui.R:37:3): check on the use of the default client for API caching
Reason: On CRAN
-- Skip (test_ui.R:66:3): get_datasets with no temp first ----------------------
Reason: On CRAN
-- Skip (test_ui.R:96:3): get_model_datasets -----------------------------------
Reason: On CRAN
-- Skip (test_ui.R:106:3): get_downloaded_datasets -----------------------------
Reason: On CRAN
-- Skip (test_ui.R:117:3): get_available_datasets ------------------------------
Reason: On CRAN
-- Skip (test_ui.R:127:3): search_and_extract_dhs ------------------------------
Reason: On CRAN
-- Skip (test_ui.R:145:3): get_variable_labels ---------------------------------
Reason: On CRAN
-- Skip (test_ui.R:167:3): get_variable_labels direct via client ---------------
Reason: On CRAN
-- Skipped tests --------------------------------------------------------------
* DHS has removed this file (possibly because of what it tested (1)
* On CRAN (40)
* empty test (1)
* geojson test too heavy an API test (1)
== testthat results ===========================================================
ERROR (test_read_dhs_flat.R:13:3): datasets parse
ERROR (test_read_dhs_flat.R:57:3): data dictionaries FWF lengths match file width
[ FAIL 2 | WARN 0 | SKIP 43 | PASS 15 ]
Error: Test failures
Execution halted
Flavor: r-oldrel-windows-ix86+x86_64