* using log directory ‘/Users/ripley/R/packages/tests-devel/nationwider.Rcheck’ * using R Under development (unstable) (2021-07-25 r80663) * using platform: aarch64-apple-darwin20.6.0 (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘nationwider/DESCRIPTION’ ... OK * this is package ‘nationwider’ version ‘1.1.1’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘nationwider’ can be installed ... OK * checking installed package size ... OK * checking package 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... 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 LazyData ... NOTE 'LazyData' is specified without a 'data' directory * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘spelling.R’ Running ‘testthat.R’ ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(nationwider) > > test_check("nationwider") ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure (test-fail-internals.R:7:3): ntwd_tf ──────────────────────────────── attr(ntwd_tf(1), "source") not identical to "https://www.nationwide.co.uk/-/media/MainSite/documents/about/house-price-index/downloads/monthly.xls". 1/1 mismatches x[1]: "https://www.nationwide.co.uk" y[1]: "https://www.nationwide.co.uk/-/media/MainSite/documents/about/house-price y[1]: -index/downloads/monthly.xls" ── Failure (test-misc.R:17:3): access meta ───────────────────────────────────── ntwd_meta(tbl) not identical to "1952 Q4 = 100". target is NULL, current is character ── Failure (test-symbols.R:16:3): id works ───────────────────────────────────── `ntwd_get("monthly")` threw an error. Message: filepath: /private/var/folders/q0/b3nsz99x771f2m0wp3t7t47m0000gn/T/RtmpYCggTd/working_dir/RtmpqvjAhS/file1602460239cb.xls libxls error: Unable to open file Class: Rcpp::exception/C++Error/error/condition Backtrace: █ 1. ├─testthat::expect_error(ntwd_get("monthly"), NA) test-symbols.R:16:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat:::.capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─nationwider::ntwd_get("monthly") 7. │ └─nationwider:::ntwd_get_id(id, .verbose = verbose) 8. │ └─nationwider:::ntwd_get_monthly(.access_info = .verbose) 9. │ └─`%>%`(...) 10. ├─nationwider:::set_source(., xfile) 11. ├─tidyr::gather(., type, value, -Date) 12. ├─nationwider:::clean_date(.) 13. │ ├─`%>%`(...) 14. │ └─dplyr::mutate(x, Date = as.Date(...1), ...1 = NULL) 15. ├─dplyr::mutate_if(., Negate(lubridate::is.Date), as.double) 16. │ └─dplyr:::check_grouped(.tbl, "mutate", "if") 17. │ └─dplyr::is_grouped_df(tbl) 18. ├─dplyr::select(., Date, dplyr::everything()) 19. └─nationwider:::read_excel_silently(.) 20. ├─base::suppressMessages(...) 21. │ └─base::withCallingHandlers(...) 22. └─readxl::read_excel(..., na = c("", "N/A")) 23. └─readxl:::read_excel_(...) 24. ├─readxl:::set_readxl_names(...) 25. │ └─tibble::as_tibble(l, .name_repair = .name_repair) 26. └─readxl:::read_fun(...) ── Failure (test-symbols.R:20:3): id works ───────────────────────────────────── `ntwd_get("regional")` threw an error. Message: invalid first filename Class: simpleError/error/condition Backtrace: █ 1. ├─testthat::expect_error(ntwd_get("regional"), NA) test-symbols.R:20:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat:::.capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─nationwider::ntwd_get("regional") 7. └─nationwider:::ntwd_get_id(id, .verbose = verbose) 8. └─nationwider:::ntwd_get_generic("all_prop", .access_info = .verbose) 9. └─base::file.remove(xfile) ── Failure (test-symbols.R:22:3): id works ───────────────────────────────────── `ntwd_get("new_prop")` threw an error. Message: invalid first filename Class: simpleError/error/condition Backtrace: █ 1. ├─testthat::expect_error(ntwd_get("new_prop"), NA) test-symbols.R:22:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat:::.capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─nationwider::ntwd_get("new_prop") 7. └─nationwider:::ntwd_get_id(id, .verbose = verbose) 8. └─nationwider:::ntwd_get_generic(id, .access_info = .verbose) 9. └─base::file.remove(xfile) ── Failure (test-symbols.R:23:3): id works ───────────────────────────────────── `ntwd_get("mod_prop")` threw an error. Message: invalid first filename Class: simpleError/error/condition Backtrace: █ 1. ├─testthat::expect_error(ntwd_get("mod_prop"), NA) test-symbols.R:23:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat:::.capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─nationwider::ntwd_get("mod_prop") 7. └─nationwider:::ntwd_get_id(id, .verbose = verbose) 8. └─nationwider:::ntwd_get_generic(id, .access_info = .verbose) 9. └─base::file.remove(xfile) ── Failure (test-symbols.R:24:3): id works ───────────────────────────────────── `ntwd_get("old_prop")` threw an error. Message: invalid first filename Class: simpleError/error/condition Backtrace: █ 1. ├─testthat::expect_error(ntwd_get("old_prop"), NA) test-symbols.R:24:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat:::.capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─nationwider::ntwd_get("old_prop") 7. └─nationwider:::ntwd_get_id(id, .verbose = verbose) 8. └─nationwider:::ntwd_get_generic(id, .access_info = .verbose) 9. └─base::file.remove(xfile) ── Failure (test-symbols.R:26:3): id works ───────────────────────────────────── `ntwd_get("first")` threw an error. Message: invalid first filename Class: simpleError/error/condition Backtrace: █ 1. ├─testthat::expect_error(ntwd_get("first"), NA) test-symbols.R:26:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat:::.capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─nationwider::ntwd_get("first") 7. └─nationwider:::ntwd_get_id(id, .verbose = verbose) 8. └─nationwider:::ntwd_get_generic(id, .access_info = .verbose) 9. └─base::file.remove(xfile) ── Failure (test-symbols.R:27:3): id works ───────────────────────────────────── `ntwd_get("fowner")` threw an error. Message: invalid first filename Class: simpleError/error/condition Backtrace: █ 1. ├─testthat::expect_error(ntwd_get("fowner"), NA) test-symbols.R:27:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat:::.capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─nationwider::ntwd_get("fowner") 7. └─nationwider:::ntwd_get_id(id, .verbose = verbose) 8. └─nationwider:::ntwd_get_generic(id, .access_info = .verbose) 9. └─base::file.remove(xfile) ── Failure (test-symbols.R:28:3): id works ───────────────────────────────────── `ntwd_get("terraced")` threw an error. Message: invalid first filename Class: simpleError/error/condition Backtrace: █ 1. ├─testthat::expect_error(ntwd_get("terraced"), NA) test-symbols.R:28:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat:::.capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─nationwider::ntwd_get("terraced") 7. └─nationwider:::ntwd_get_id(id, .verbose = verbose) 8. └─nationwider:::ntwd_get_generic(id, .access_info = .verbose) 9. └─base::file.remove(xfile) ── Failure (test-symbols.R:29:3): id works ───────────────────────────────────── `ntwd_get("flats")` threw an error. Message: invalid first filename Class: simpleError/error/condition Backtrace: █ 1. ├─testthat::expect_error(ntwd_get("flats"), NA) test-symbols.R:29:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat:::.capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─nationwider::ntwd_get("flats") 7. └─nationwider:::ntwd_get_id(id, .verbose = verbose) 8. └─nationwider:::ntwd_get_generic(id, .access_info = .verbose) 9. └─base::file.remove(xfile) ── Failure (test-symbols.R:30:3): id works ───────────────────────────────────── `ntwd_get("semi_det")` threw an error. Message: invalid first filename Class: simpleError/error/condition Backtrace: █ 1. ├─testthat::expect_error(ntwd_get("semi_det"), NA) test-symbols.R:30:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat:::.capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─nationwider::ntwd_get("semi_det") 7. └─nationwider:::ntwd_get_id(id, .verbose = verbose) 8. └─nationwider:::ntwd_get_generic(id, .access_info = .verbose) 9. └─base::file.remove(xfile) ── Failure (test-symbols.R:31:3): id works ───────────────────────────────────── `ntwd_get("detached")` threw an error. Message: invalid first filename Class: simpleError/error/condition Backtrace: █ 1. ├─testthat::expect_error(ntwd_get("detached"), NA) test-symbols.R:31:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat:::.capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─nationwider::ntwd_get("detached") 7. └─nationwider:::ntwd_get_id(id, .verbose = verbose) 8. └─nationwider:::ntwd_get_generic(id, .access_info = .verbose) 9. └─base::file.remove(xfile) ── Error (test-tidy.R:7:3): tidy objects ─────────────────────────────────────── Error: filepath: /private/var/folders/q0/b3nsz99x771f2m0wp3t7t47m0000gn/T/RtmpYCggTd/working_dir/RtmpqvjAhS/file160245ab238ea.xls libxls error: Unable to open file Backtrace: █ 1. ├─nationwider:::expect_tidy(ntwd_get("monthly")) test-tidy.R:7:2 2. │ ├─testthat::expect(is_tidy(x), "object is not tidy") helper.R:16:2 3. │ └─nationwider:::is_tidy(x) 4. │ └─nationwider:::has_date(x) helper.R:12:2 5. ├─nationwider::ntwd_get("monthly") helper.R:3:2 6. │ └─nationwider:::ntwd_get_id(id, .verbose = verbose) 7. │ └─nationwider:::ntwd_get_monthly(.access_info = .verbose) 8. │ └─`%>%`(...) 9. ├─nationwider:::set_source(., xfile) 10. ├─tidyr::gather(., type, value, -Date) 11. ├─nationwider:::clean_date(.) 12. │ ├─`%>%`(...) 13. │ └─dplyr::mutate(x, Date = as.Date(...1), ...1 = NULL) 14. ├─dplyr::mutate_if(., Negate(lubridate::is.Date), as.double) 15. │ └─dplyr:::check_grouped(.tbl, "mutate", "if") 16. │ └─dplyr::is_grouped_df(tbl) 17. ├─dplyr::select(., Date, dplyr::everything()) 18. └─nationwider:::read_excel_silently(.) 19. ├─base::suppressMessages(...) 20. │ └─base::withCallingHandlers(...) 21. └─readxl::read_excel(..., na = c("", "N/A")) 22. └─readxl:::read_excel_(...) 23. ├─readxl:::set_readxl_names(...) 24. │ └─tibble::as_tibble(l, .name_repair = .name_repair) 25. └─readxl:::read_fun(...) [ FAIL 14 | WARN 0 | SKIP 0 | PASS 12 ] Error: Test failures Execution halted * checking PDF version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 1 NOTE See ‘/Users/ripley/R/packages/tests-devel/nationwider.Rcheck/00check.log’ for details. 31.55 real 23.71 user 4.28 sys