Last updated on 2021-07-29 05:50:13 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 1.1.1 | ERROR | ||||
r-devel-linux-x86_64-debian-gcc | 1.1.1 | 5.27 | 45.62 | 50.89 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 1.1.1 | 88.21 | ERROR | |||
r-devel-linux-x86_64-fedora-gcc | 1.1.1 | 78.48 | ERROR | |||
r-devel-windows-x86_64 | 1.1.1 | 11.00 | 123.00 | 134.00 | ERROR | |
r-devel-windows-x86_64-gcc10-UCRT | 1.1.1 | ERROR | ||||
r-patched-linux-x86_64 | 1.1.1 | 6.64 | 56.76 | 63.40 | ERROR | |
r-patched-solaris-x86 | 1.1.1 | 109.10 | ERROR | |||
r-release-linux-x86_64 | 1.1.1 | 5.81 | 56.75 | 62.56 | ERROR | |
r-release-macos-arm64 | 1.1.1 | ERROR | ||||
r-release-macos-x86_64 | 1.1.1 | NOTE | ||||
r-release-windows-ix86+x86_64 | 1.1.1 | 15.00 | 123.00 | 138.00 | ERROR | |
r-oldrel-macos-x86_64 | 1.1.1 | OK | ||||
r-oldrel-windows-ix86+x86_64 | 1.1.1 | 11.00 | 127.00 | 138.00 | ERROR |
Version: 1.1.1
Check: LazyData
Result: NOTE
'LazyData' is specified without a 'data' directory
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-devel-windows-x86_64-gcc10-UCRT, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-ix86+x86_64
Version: 1.1.1
Check: tests
Result: ERROR
Running 'spelling.R' [0s/0s]
Running 'testthat.R' [5s/9s]
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: /tmp/RtmpLHzF6o/file71675e090b7f.xls
libxls error: Unable to open file
Class: Rcpp::exception/C++Error/error/condition
Backtrace:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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: /tmp/RtmpLHzF6o/file7167268c6a6.xls
libxls error: Unable to open file
Backtrace:
x
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
Flavor: r-devel-linux-x86_64-debian-clang
Version: 1.1.1
Check: tests
Result: ERROR
Running ‘spelling.R’ [0s/1s]
Running ‘testthat.R’ [4s/9s]
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: /home/hornik/tmp/scratch/RtmpnijUIn/file77dc6e95b9e9.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: /home/hornik/tmp/scratch/RtmpnijUIn/file77dca511a1b.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
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.1.1
Check: tests
Result: ERROR
Running ‘spelling.R’
Running ‘testthat.R’
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: /tmp/Rtmp2JZtpV/working_dir/RtmpIM3vgU/file2e514a775a53c4.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: /tmp/Rtmp2JZtpV/working_dir/RtmpIM3vgU/file2e514a690e1904.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
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.1.1
Check: tests
Result: ERROR
Running ‘spelling.R’
Running ‘testthat.R’ [6s/14s]
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: /tmp/RtmpLGdJ38/working_dir/RtmplWAr59/file2c29d62b68d1ca.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: /tmp/RtmpLGdJ38/working_dir/RtmplWAr59/file2c29d650509f87.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
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 1.1.1
Check: tests
Result: ERROR
Running 'spelling.R' [0s]
Running 'testthat.R' [51s]
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: D:\temp\RtmpSCS6Jh\file36a43d9f7eb2.xls
libxls error: Unable to open file
Class: Rcpp::exception/C++Error/error/condition
Backtrace:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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: D:\temp\RtmpSCS6Jh\file36a42006248c.xls
libxls error: Unable to open file
Backtrace:
x
1. +-nationwider:::expect_tidy(ntwd_get("monthly")) test-tidy.R:7:2
2. | +-testthat::expect(is_tidy(x), "object is not tidy") d:\RCompile\CRANpkg\local\4.2\nationwider.Rcheck\tests\testthat\helper.R:16:2
3. | \-nationwider:::is_tidy(x)
4. | \-nationwider:::has_date(x) d:\RCompile\CRANpkg\local\4.2\nationwider.Rcheck\tests\testthat\helper.R:12:2
5. +-nationwider::ntwd_get("monthly") d:\RCompile\CRANpkg\local\4.2\nationwider.Rcheck\tests\testthat\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
Flavor: r-devel-windows-x86_64
Version: 1.1.1
Check: tests
Result: ERROR
Running 'spelling.R'
Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Last 13 lines of output:
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
Flavor: r-devel-windows-x86_64-gcc10-UCRT
Version: 1.1.1
Check: tests
Result: ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [5s/9s]
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: /tmp/RtmpA8xl3H/file4e72684e4889.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: /tmp/RtmpA8xl3H/file4e727cf5526d.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
Flavor: r-patched-linux-x86_64
Version: 1.1.1
Check: tests
Result: ERROR
Running ‘spelling.R’
Running ‘testthat.R’ [8s/181s]
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: /tmp/RtmpgNai4H/working_dir/Rtmp.5aO1S/file59ad45d3a94.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: /tmp/RtmpgNai4H/working_dir/Rtmp.5aO1S/file59ad6ab63d14.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
Flavor: r-patched-solaris-x86
Version: 1.1.1
Check: tests
Result: ERROR
Running ‘spelling.R’ [0s/1s]
Running ‘testthat.R’ [5s/9s]
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: /tmp/RtmpKanppR/file6b972ca713b4.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: /tmp/RtmpKanppR/file6b979736b4d.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
Flavor: r-release-linux-x86_64
Version: 1.1.1
Check: tests
Result: ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [3s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
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
Flavor: r-release-macos-arm64
Version: 1.1.1
Check: tests
Result: ERROR
Running 'spelling.R' [0s]
Running 'testthat.R' [52s]
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: D:\temp\RtmpwlyRFJ\file38b1879fa5807.xls
libxls error: Unable to open file
Class: Rcpp::exception/C++Error/error/condition
Backtrace:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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: D:\temp\RtmpwlyRFJ\file38b184d17244a.xls
libxls error: Unable to open file
Backtrace:
x
1. +-nationwider:::expect_tidy(ntwd_get("monthly")) test-tidy.R:7:2
2. | +-testthat::expect(is_tidy(x), "object is not tidy") d:\RCompile\CRANpkg\local\4.1\nationwider.Rcheck\tests\testthat\helper.R:16:2
3. | \-nationwider:::is_tidy(x)
4. | \-nationwider:::has_date(x) d:\RCompile\CRANpkg\local\4.1\nationwider.Rcheck\tests\testthat\helper.R:12:2
5. +-nationwider::ntwd_get("monthly") d:\RCompile\CRANpkg\local\4.1\nationwider.Rcheck\tests\testthat\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
Flavor: r-release-windows-ix86+x86_64
Version: 1.1.1
Check: tests
Result: ERROR
Running 'spelling.R' [0s]
Running 'testthat.R' [51s]
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: D:\temp\Rtmps7nC5U\file373c07bbc2df3.xls
libxls error: Unable to open file
Class: Rcpp::exception/C++Error/error/condition
Backtrace:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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:
x
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: D:\temp\Rtmps7nC5U\file373c016b1156d.xls
libxls error: Unable to open file
Backtrace:
x
1. +-nationwider:::expect_tidy(ntwd_get("monthly")) test-tidy.R:7:2
2. | +-testthat::expect(is_tidy(x), "object is not tidy") d:\RCompile\CRANpkg\local\4.0\nationwider.Rcheck\tests\testthat\helper.R:16:2
3. | \-nationwider:::is_tidy(x)
4. | \-nationwider:::has_date(x) d:\RCompile\CRANpkg\local\4.0\nationwider.Rcheck\tests\testthat\helper.R:12:2
5. +-nationwider::ntwd_get("monthly") d:\RCompile\CRANpkg\local\4.0\nationwider.Rcheck\tests\testthat\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
Flavor: r-oldrel-windows-ix86+x86_64