Running ‘a-c.R’ [2s/43s]
  Running ‘d.R’ [2s/53s]
  Running ‘e.R’ [3s/134s]
  Running ‘f-z.R’ [3s/84s]
Running the tests in ‘tests/a-c.R’ failed.
Complete output:
  > library(testthat)
  > library(fingertipsR)
  > 
  > test_check("fingertipsR", filter = "^[a-c]")
  ── 1. Error: the area_types function works correctly (@test-area_types.R#8)  ───
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_is(area_types(), "data.frame")
   4. fingertipsR::area_types()
   5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 2. Error: the indicator_areatypes function is working correctly (@test-area_t
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_equal(ncol(indicator_areatypes()), 2)
   5. fingertipsR::indicator_areatypes()
   6. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 3. Error: category_types returns as expected (@test-area_types.R#38)  ───────
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_is(category_types(), "data.frame")
   4. fingertipsR::category_types()
   5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 4. Error: nearest_neighbours returns as expected (@test-area_types.R#46)  ───
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_equal(...)
   4. fingertipsR::nearest_neighbours("E09000001", 102, "CIPFA")
   5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: the area_types function works correctly (@test-area_types.R#8) 
  2. Error: the indicator_areatypes function is working correctly (@test-area_types.R#24) 
  3. Error: category_types returns as expected (@test-area_types.R#38) 
  4. Error: nearest_neighbours returns as expected (@test-area_types.R#46) 
  
  Error: testthat unit tests failed
  Execution halted
Running the tests in ‘tests/d.R’ failed.
Complete output:
  > library(testthat)
  > library(fingertipsR)
  > 
  > test_check("fingertipsR", filter = "^[d]")
  ── 1. Error: the number of columns of deprivation decile function are as expecte
  The API is currently unavailable
  Backtrace:
    1. testthat::expect_equal(...)
    5. fingertipsR::deprivation_decile(AreaTypeID = 202, Year = 2015)
    9. base::lapply(indicators_2015, indicator_areatypes)
   10. fingertipsR:::FUN(X[[i]], ...)
   11. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 2. Error: the number of rows returned by deprivation decile is greater than 2
  The API is currently unavailable
  Backtrace:
    1. testthat::expect_true(...)
    5. fingertipsR::deprivation_decile(AreaTypeID = 201, Year = 2019)
    9. base::lapply(indicators_2015, indicator_areatypes)
   10. fingertipsR:::FUN(X[[i]], ...)
   11. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 3. Error: the class of columns returned are character-numeric-integer (@test-
  The API is currently unavailable
  Backtrace:
    1. testthat::expect_equal(...)
    5. fingertipsR::deprivation_decile(AreaTypeID = 202, Year = 2019)
    9. base::lapply(indicators_2015, indicator_areatypes)
   10. fingertipsR:::FUN(X[[i]], ...)
   11. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 4. Failure: error messages work correctly (@test-deprivation.R#31)  ─────────
  `deprivation_decile(AreaTypeID = 12, Year = 2019)` threw an error with unexpected message.
  Expected match: "AreaTypeID not available"
  Actual message: "The API is currently unavailable"
  Backtrace:
    1. testthat::expect_error(...)
    6. fingertipsR::deprivation_decile(AreaTypeID = 12, Year = 2019)
   10. base::lapply(indicators_2015, indicator_areatypes)
   11. fingertipsR:::FUN(X[[i]], ...)
   12. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 5. Failure: error messages work correctly (@test-deprivation.R#34)  ─────────
  `deprivation_decile(AreaTypeID = 3, Year = 2019)` threw an error with unexpected message.
  Expected match: "AreaTypeID unavailable for 2019"
  Actual message: "The API is currently unavailable"
  Backtrace:
    1. testthat::expect_error(...)
    6. fingertipsR::deprivation_decile(AreaTypeID = 3, Year = 2019)
   10. base::lapply(indicators_2015, indicator_areatypes)
   11. fingertipsR:::FUN(X[[i]], ...)
   12. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 2 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ]
  1. Error: the number of columns of deprivation decile function are as expected (@test-deprivation.R#9) 
  2. Error: the number of rows returned by deprivation decile is greater than 2 (@test-deprivation.R#15) 
  3. Error: the class of columns returned are character-numeric-integer (@test-deprivation.R#24) 
  4. Failure: error messages work correctly (@test-deprivation.R#31) 
  5. Failure: error messages work correctly (@test-deprivation.R#34) 
  
  Error: testthat unit tests failed
  Execution halted
Running the tests in ‘tests/e.R’ failed.
Complete output:
  > library(testthat)
  > library(fingertipsR)
  > 
  > test_check("fingertipsR", filter = "^[e]")
  ── 1. Failure: fingertips_redred should return an error (@test-enhancements.R#8)
  `fingertips_redred(IndicatorID = 10101, AreaTypeID = 202, Comparator = "Sub-national")` threw an error with unexpected message.
  Expected match: "Comparator must be either England, Parent or Goal"
  Actual message: "The API is currently unavailable"
  Backtrace:
   1. testthat::expect_error(...)
   6. fingertipsR::fingertips_redred(...)
   7. fingertipsR::fingertips_data(...)
   8. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 2. Error: fingertips_redred should return a 26 field data.frame (@test-enhanc
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_equal(...)
   5. fingertipsR::fingertips_redred(90616, AreaTypeID = 202, Comparator = "England")
   6. fingertipsR::fingertips_data(...)
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 3. Error: fingertips_stats functionality (@test-enhancements.R#25)  ─────────
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_null(fingertips_stats())
   4. fingertipsR::fingertips_stats()
   5. fingertipsR::indicators()
   6. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 4. Failure: error messages work for fingertips_data (@test-extract.R#10)  ───
  `fingertips_data()` threw an error with unexpected message.
  Expected match: "One of IndicatorID, DomainID or ProfileID must have an input"
  Actual message: "The API is currently unavailable"
  Backtrace:
   1. testthat::expect_error(fingertips_data(), "One of IndicatorID, DomainID or ProfileID must have an input")
   6. fingertipsR::fingertips_data()
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 5. Failure: error messages work for fingertips_data (@test-extract.R#12)  ───
  `fingertips_data(IndicatorID = 92309, AreaTypeID = "hello")` threw an error with unexpected message.
  Expected match: "Invalid AreaTypeID\\. Use function area_types\\(\\) to see what values can be used\\."
  Actual message: "The API is currently unavailable"
  Backtrace:
   1. testthat::expect_error(...)
   6. fingertipsR::fingertips_data(IndicatorID = 92309, AreaTypeID = "hello")
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 6. Failure: error messages work for fingertips_data (@test-extract.R#15)  ───
  `fingertips_data(IndicatorID = 92309, AreaTypeID = NULL)` threw an error with unexpected message.
  Expected match: "AreaTypeID must have a value\\. Use function area_types\\(\\) to see what values can be used\\."
  Actual message: "The API is currently unavailable"
  Backtrace:
   1. testthat::expect_error(...)
   6. fingertipsR::fingertips_data(IndicatorID = 92309, AreaTypeID = NULL)
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 7. Failure: error messages work for fingertips_data (@test-extract.R#18)  ───
  `fingertips_data(DomainID = 1938132767, AreaTypeID = 202, AreaCode = "hello")` threw an error with unexpected message.
  Expected match: "Area code not contained in AreaTypeID\\."
  Actual message: "The API is currently unavailable"
  Backtrace:
   1. testthat::expect_error(...)
   6. fingertipsR::fingertips_data(...)
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 8. Failure: error messages work for fingertips_data (@test-extract.R#21)  ───
  `fingertips_data(...)` threw an error with unexpected message.
  Expected match: "If ProfileID and IndicatorID are populated, they must be the same length"
  Actual message: "The API is currently unavailable"
  Backtrace:
   1. testthat::expect_error(...)
   6. fingertipsR::fingertips_data(...)
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 9. Failure: error messages work for fingertips_data (@test-extract.R#24)  ───
  `fingertips_data(IndicatorID = 90631, AreaTypeID = 202, categorytype = "testerror")` threw an error with unexpected message.
  Expected match: "categorytype input must be TRUE or FALSE"
  Actual message: "The API is currently unavailable"
  Backtrace:
   1. testthat::expect_error(...)
   6. fingertipsR::fingertips_data(...)
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 10. Failure: error messages work for fingertips_data (@test-extract.R#27)  ──
  `fingertips_data()` threw an error with unexpected message.
  Expected match: "One of IndicatorID, DomainID or ProfileID must have an input"
  Actual message: "The API is currently unavailable"
  Backtrace:
   1. testthat::expect_error(fingertips_data(), "One of IndicatorID, DomainID or ProfileID must have an input")
   6. fingertipsR::fingertips_data()
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 11. Failure: error messages work for fingertips_data (@test-extract.R#30)  ──
  `fingertips_data(IndicatorID = 90631)` threw an error with unexpected message.
  Expected match: "AreaTypeID must be defined"
  Actual message: "The API is currently unavailable"
  Backtrace:
   1. testthat::expect_error(...)
   6. fingertipsR::fingertips_data(IndicatorID = 90631)
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 12. Error: warning messages work for fingertips_data (@test-extract.R#37)  ──
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_warning(...)
   6. fingertipsR::fingertips_data(...)
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 13. Error: number of fields returned by fingertips_data function are 26 (@tes
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_equal(...)
   4. fingertipsR::fingertips_data(...)
   5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 13 ]
  1. Failure: fingertips_redred should return an error (@test-enhancements.R#8) 
  2. Error: fingertips_redred should return a 26 field data.frame (@test-enhancements.R#15) 
  3. Error: fingertips_stats functionality (@test-enhancements.R#25) 
  4. Failure: error messages work for fingertips_data (@test-extract.R#10) 
  5. Failure: error messages work for fingertips_data (@test-extract.R#12) 
  6. Failure: error messages work for fingertips_data (@test-extract.R#15) 
  7. Failure: error messages work for fingertips_data (@test-extract.R#18) 
  8. Failure: error messages work for fingertips_data (@test-extract.R#21) 
  9. Failure: error messages work for fingertips_data (@test-extract.R#24) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted
Running the tests in ‘tests/f-z.R’ failed.
Complete output:
  > library(testthat)
  > library(fingertipsR)
  > 
  > test_check("fingertipsR", filter = "^[f-z]")
  ── 1. Failure: profile warnings work (@test-indicators.R#8)  ───────────────────
  `profiles(c(12, 14))` threw an error with unexpected message.
  Expected match: "ProfileID\\(s\\) are not in the list of profile IDs\\. Re-run the function without any inputs to see all possible IDs\\."
  Actual message: "The API is currently unavailable"
  Backtrace:
   1. testthat::expect_error(profiles(c(12, 14)), "ProfileID\\(s\\) are not in the list of profile IDs\\. Re-run the function without any inputs to see all possible IDs\\.")
   6. fingertipsR::profiles(c(12, 14))
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 2. Failure: profile warnings work (@test-indicators.R#11)  ──────────────────
  `profiles(ProfileName = "PHOF")` threw an error with unexpected message.
  Expected match: "Profile names are not in the list of profile names\\. Re-run the function without any inputs to see all possible names\\."
  Actual message: "The API is currently unavailable"
  Backtrace:
   1. testthat::expect_error(profiles(ProfileName = "PHOF"), "Profile names are not in the list of profile names\\. Re-run the function without any inputs to see all possible names\\.")
   6. fingertipsR::profiles(ProfileName = "PHOF")
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 3. Error: the profiles function works (@test-indicators.R#18)  ──────────────
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_is(...)
   4. fingertipsR::profiles(ProfileName = "Public Health Outcomes Framework")
   5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 4. Error: profile indicators work (@test-indicators.R#30)  ──────────────────
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_warning(...)
   6. fingertipsR::indicators(ProfileID = 156, DomainID = 1938133294)
   7. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 5. Error: the indicators function works (@test-indicators.R#37)  ────────────
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_is(indicators(19), "data.frame")
   4. fingertipsR::indicators(19)
   5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 6. Error: the indicators_unique function works (@test-indicators.R#46)  ─────
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_is(indicators_unique(19), "data.frame")
   4. fingertipsR::indicators_unique(19)
   5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 7. Error: the indicator_order function works (@test-indicators.R#52)  ───────
  The API is currently unavailable
  Backtrace:
   1. testthat::expect_is(...)
   4. fingertipsR::indicator_order(...)
   5. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ── 8. Error: (unknown) (@test-metadata.R#8)  ───────────────────────────────────
  The API is currently unavailable
  Backtrace:
   1. fingertipsR::indicator_metadata(IndicatorID = 10101)
   2. fingertipsR:::fingertips_ensure_api_available(endpoint = path)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 2 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 8 ]
  1. Failure: profile warnings work (@test-indicators.R#8) 
  2. Failure: profile warnings work (@test-indicators.R#11) 
  3. Error: the profiles function works (@test-indicators.R#18) 
  4. Error: profile indicators work (@test-indicators.R#30) 
  5. Error: the indicators function works (@test-indicators.R#37) 
  6. Error: the indicators_unique function works (@test-indicators.R#46) 
  7. Error: the indicator_order function works (@test-indicators.R#52) 
  8. Error: (unknown) (@test-metadata.R#8) 
  
  Error: testthat unit tests failed
  Execution halted