Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [5s/8s]
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/RtmpoNZqY2/file715539e26bdb.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/RtmpoNZqY2/file71551038042c.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