* using log directory 'd:/Rcompile/CRANpkg/local/4.5/readabs.Rcheck' * using R Under development (unstable) (2024-06-03 r86679 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 'readabs/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'readabs' version '0.4.16' * 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 'readabs' 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 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 ... [5s] 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 R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [13s] ERROR Running examples in 'readabs-Ex.R' failed The error most likely occurred in: > ### Name: get_available_lfs_cubes > ### Title: Show the available Labour Force, Australia, detailed data cubes > ### that can be downloaded > ### Aliases: get_available_lfs_cubes > > ### ** Examples > > > get_available_lfs_cubes() URL does not seem to exist: https://www.abs.gov.au/statistics/labour/employment-and-unemployment/labour-force-australia-detailed/latest-release Here's the original error message: cannot open URL 'https://www.abs.gov.au/statistics/labour/employment-and-unemployment/labour-force-australia-detailed/latest-release'Error in `path_to_connection()`: ! 'D:\temp\Rtmp8gJVhR/temp_readabs.html' does not exist. Backtrace: ▆ 1. └─readabs::get_available_lfs_cubes() 2. └─readabs::get_available_files("labour-force-australia-detailed") 3. └─readabs::show_available_files(...) 4. ├─xml2::read_html(temp_page_location) 5. └─xml2:::read_html.default(temp_page_location) 6. ├─base::suppressWarnings(...) 7. │ └─base::withCallingHandlers(...) 8. ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options) 9. └─xml2:::read_xml.character(...) 10. └─xml2:::path_to_connection(x) 11. └─xml2:::check_path(path) 12. └─cli::cli_abort(msg, call = call) 13. └─rlang::abort(...) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [16s] ERROR Running 'testthat.R' [15s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(readabs) Environment variable 'R_READABS_PATH' is unset. Downloaded files will be saved in a temporary directory. You can set 'R_READABS_PATH' at any time. To set it for the rest of this session, use Sys.setenv(R_READABS_PATH = ) > > test_check("readabs") [ FAIL 1 | WARN 0 | SKIP 34 | PASS 61 ] ══ Skipped tests (34) ══════════════════════════════════════════════════════════ • On CRAN (34): 'test-abs_api.R:2:3', 'test-abs_api.R:16:3', 'test-abs_api.R:46:3', 'test-abs_api.R:55:3', 'test-check_latest_date.R:2:3', 'test-data-uptodate.R:2:3', 'test-data-uptodate.R:15:3', 'test-download-data-cube.r:4:3', 'test-download_abs.R:2:3', 'test-fst.R:2:3', 'test-get_available_files.r:2:3', 'test-individual-readabs-steps.R:2:3', 'test-match_tables.R:9:3', 'test-read_abs_url.R:2:3', 'test-read_awe.R:19:3', 'test-read_job_mobility.R:2:3', 'test-read_lfs_grossflows.R:2:3', 'test-read_payrolls.R:2:3', 'test-readabs.R:6:3', 'test-readabs.R:19:3', 'test-readabs.R:38:3', 'test-readabs.R:50:3', 'test-readabs.R:63:3', 'test-readabs.R:83:3', 'test-readabs.R:96:3', 'test-readabs.R:109:3', 'test-readabs.R:118:3', 'test-readabs.R:152:3', 'test-readabs.R:162:3', 'test-readabs.R:169:3', 'test-search_catalogues.R:19:3', 'test-separate_series.R:7:3', 'test-separate_series.R:54:3', 'test-show_available_catalogues.r:15:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-download_data_cube.R:2:3'): read_lfs_datacube ────────────────── Error in `utils::download.file(url = url, destfile = destfile, mode = "wb", quiet = quiet, headers = readabs_header, cacheOK = FALSE, method = method)`: cannot open URL 'https://www.abs.gov.au/statistics/labour/employment-and-unemployment/labour-force-australia-detailed/latest-release' Backtrace: ▆ 1. └─readabs::get_available_lfs_cubes() at test-download_data_cube.R:2:3 2. └─readabs::get_available_files("labour-force-australia-detailed") 3. └─readabs::show_available_files(...) 4. └─base::tryCatch(...) 5. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 6. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7. └─value[[3L]](cond) [ FAIL 1 | WARN 0 | SKIP 34 | PASS 61 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [8s] OK * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 2 ERRORs