CRAN Package Check Results for Maintainer ‘Matt Cowgill <mattcowgill at gmail.com>’

Last updated on 2024-06-06 05:58:26 CEST.

Package ERROR OK
readabs 1 12
readrba 1 12

Package readabs

Current CRAN status: ERROR: 1, OK: 12

Version: 0.4.16
Check: examples
Result: 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 Flavor: r-devel-windows-x86_64

Version: 0.4.16
Check: tests
Result: 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 = <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 Flavor: r-devel-windows-x86_64

Package readrba

Current CRAN status: ERROR: 1, OK: 12

Version: 0.1.8
Check: examples
Result: ERROR Running examples in 'readrba-Ex.R' failed The error most likely occurred in: > ### Name: rba_forecasts > ### Title: Compile the RBA's public forecasts of key economic variables > ### over time > ### Aliases: rba_forecasts read_forecasts > > ### ** Examples > > forecasts <- read_forecasts() trying URL 'https://www.rba.gov.au/statistics/xls/smp-forecast-archive.xlsx' Warning in utils::download.file(xlsx_url, xlsx_file, mode = "wb") : URL 'https://www.rba.gov.au/statistics/xls/smp-forecast-archive.xlsx': status was 'Couldn't resolve host name' Error in utils::download.file(xlsx_url, xlsx_file, mode = "wb") : cannot open URL 'https://www.rba.gov.au/statistics/xls/smp-forecast-archive.xlsx' Calls: read_forecasts ... rba_forecasts -> scrape_rba_forecasts -> <Anonymous> Execution halted Flavor: r-devel-windows-x86_64

Version: 0.1.8
Check: tests
Result: ERROR Running 'testthat.R' [67s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(readrba) > > test_check("readrba") [ FAIL 2 | WARN 0 | SKIP 14 | PASS 45 ] ══ Skipped tests (14) ══════════════════════════════════════════════════════════ • On CRAN (14): 'test-browse_data.R:27:3', 'test-check_if_rba_ts.R:3:3', 'test-download_rba.R:4:3', 'test-rba_forecasts.R:27:3', 'test-read_cashrate.R:2:3', 'test-read_rba.R:2:3', 'test-read_rba.R:20:3', 'test-read_rba.R:90:3', 'test-read_rba.R:106:3', 'test-read_rba_seriesid.R:2:3', 'test-scrape_rba_forecasts.R:2:3', 'test-scrape_table_list.R:4:3', 'test-url_exists.R:2:3', 'test-url_exists.R:15:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-get_rba_urls.R:2:3'): get_rba_urls() matches correct URLs ────── Error in `safely_read_html(url = table_url)`: Could not read HTML at https://www.rba.gov.au/statistics/tables/ Backtrace: ▆ 1. ├─testthat::expect_length(get_rba_urls("A1"), 1) at test-get_rba_urls.R:2:3 2. │ └─testthat::quasi_label(enquo(object), arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─readrba:::get_rba_urls("A1") 5. └─readrba:::scrape_table_list(cur_hist) 6. └─readrba:::scrape_indiv_table_list(cur_hist = cur_hist) 7. └─readrba:::safely_read_html(url = table_url) ── Error ('test-get_rba_urls.R:12:3'): get_rba_urls() returns multiple URLs where multiple tables have the same no. ── Error in `safely_read_html(url = table_url)`: Could not read HTML at https://www.rba.gov.au/statistics/tables/ Backtrace: ▆ 1. ├─testthat::expect_length(get_rba_urls("A3", "current"), 1) at test-get_rba_urls.R:12:3 2. │ └─testthat::quasi_label(enquo(object), arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─readrba:::get_rba_urls("A3", "current") 5. └─readrba:::scrape_table_list(cur_hist) 6. └─readrba:::scrape_indiv_table_list(cur_hist = cur_hist) 7. └─readrba:::safely_read_html(url = table_url) [ FAIL 2 | WARN 0 | SKIP 14 | PASS 45 ] Error: Test failures Execution halted Flavor: r-devel-windows-x86_64