* using log directory 'd:/Rcompile/CRANpkg/local/4.7/OCSdata.Rcheck' * using R Under development (unstable) (2026-11-07 r90850 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-11-08 11:03:20 UTC * checking for file 'OCSdata/DESCRIPTION' ... OK * this is package 'OCSdata' version '1.0.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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'OCSdata' 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 ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [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 ... [4s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [17s] ERROR Running examples in 'OCSdata-Ex.R' failed The error most likely occurred in: > ### Name: extra_data > ### Title: Download Open Case Study Extra Data > ### Aliases: extra_data > > ### ** Examples > > tmp = tempfile() > dir.create(tmp) > extra_data('ocs-bp-opioid-rural-urban', outpath = tmp) Error: Please install xml2 package Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [309s] ERROR Running 'testthat.R' [309s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(OCSdata) > > test_check("OCSdata") Saving _problems/test-extra_data-4.R Saving _problems/test-imported_data-4.R Saving _problems/test-raw_data-4.R Saving _problems/test-simpler_import_data-4.R Saving _problems/test-wrangled_csv-4.R Saving _problems/test-wrangled_rda-4.R v Downloading from . i Retrying download ... attempt 2. i Retrying download ... attempt 3. Saving _problems/test-zip_ocs-4.R [ FAIL 7 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-extra_data.R:4:3'): extra_data works ─────────────────────────── Error: Please install xml2 package Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-extra_data.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─OCSdata::extra_data("ocs-bp-opioid-rural-urban", outpath = tmp) 5. └─httr::content(repo) 6. └─httr:::parse_auto(raw, type, encoding, ...) 7. └─httr (local) parser(x = content, type = type, encoding = encoding, ...) 8. └─httr:::need_package("xml2") ── Error ('test-imported_data.R:4:3'): imported_data works ───────────────────── Error: Please install xml2 package Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-imported_data.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─OCSdata::imported_data("ocs-bp-opioid-rural-urban", outpath = tmp) 5. └─httr::content(repo) 6. └─httr:::parse_auto(raw, type, encoding, ...) 7. └─httr (local) parser(x = content, type = type, encoding = encoding, ...) 8. └─httr:::need_package("xml2") ── Error ('test-raw_data.R:4:3'): raw_data works ─────────────────────────────── Error: Please install xml2 package Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-raw_data.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─OCSdata::raw_data("ocs-bp-opioid-rural-urban", outpath = tmp) 5. └─httr::content(repo) 6. └─httr:::parse_auto(raw, type, encoding, ...) 7. └─httr (local) parser(x = content, type = type, encoding = encoding, ...) 8. └─httr:::need_package("xml2") ── Error ('test-simpler_import_data.R:4:3'): simpler_import_data works ───────── Error: Please install xml2 package Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-simpler_import_data.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─OCSdata::simpler_import_data("ocs-bp-opioid-rural-urban", outpath = tmp) 5. └─httr::content(repo) 6. └─httr:::parse_auto(raw, type, encoding, ...) 7. └─httr (local) parser(x = content, type = type, encoding = encoding, ...) 8. └─httr:::need_package("xml2") ── Error ('test-wrangled_csv.R:4:3'): wrangled_csv works ─────────────────────── Error: Please install xml2 package Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-wrangled_csv.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─OCSdata::wrangled_csv("ocs-bp-opioid-rural-urban", outpath = tmp) 5. └─httr::content(repo) 6. └─httr:::parse_auto(raw, type, encoding, ...) 7. └─httr (local) parser(x = content, type = type, encoding = encoding, ...) 8. └─httr:::need_package("xml2") ── Error ('test-wrangled_rda.R:4:3'): wrangled_rda works ─────────────────────── Error: Please install xml2 package Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-wrangled_rda.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─OCSdata::wrangled_rda("ocs-bp-opioid-rural-urban", outpath = tmp) 5. └─httr::content(repo) 6. └─httr:::parse_auto(raw, type, encoding, ...) 7. └─httr (local) parser(x = content, type = type, encoding = encoding, ...) 8. └─httr:::need_package("xml2") ── Error ('test-zip_ocs.R:4:3'): zip_ocs works ───────────────────────────────── Error in `curl::curl_download(url = url, destfile = destfile, quiet = quiet, mode = mode, handle = handle)`: HTTP response code said error [github.com]: The requested URL returned error: 503 Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-zip_ocs.R:4:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─OCSdata::zip_ocs("ocs-bp-co2-emissions", outpath = tmp) 5. └─usethis::use_zip(...) 6. └─usethis:::tidy_download(url, destdir) 7. └─usethis:::download_url(url, destfile = tmp) [ FAIL 7 | WARN 0 | SKIP 0 | PASS 0 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [5s] OK * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 2 ERRORs