Running examples in ‘canadacovid-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_provinces
> ### Title: Get provinces and territories
> ### Aliases: get_provinces
> 
> ### ** Examples
> 
> 
> get_provinces()
Error: API requested failed with code 500
Execution halted
Running examples in ‘canadacovid-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_regions
> ### Title: Get health regions
> ### Aliases: get_regions
> 
> ### ** Examples
> 
> 
> get_regions()
Error in `map()`:
ℹ In index: 1.
Caused by error:
! API requested failed with code 500
Backtrace:
     ▆
  1. ├─canadacovid::get_regions()
  2. │ └─purrr::map_dfr(...)
  3. │   └─purrr::map(.x, .f, ...)
  4. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
  5. │       ├─purrr:::with_indexed_errors(...)
  6. │       │ └─base::withCallingHandlers(...)
  7. │       ├─purrr:::call_with_cleanup(...)
  8. │       └─canadacovid (local) .f(.x[[i]], ...)
  9. │         └─canadacovid::get_content_parsed(url)
 10. │           └─base::stop(...)
 11. └─base::.handleSimpleError(...)
 12.   └─purrr (local) h(simpleError(msg, call))
 13.     └─cli::cli_abort(...)
 14.       └─rlang::abort(...)
Execution halted
Running examples in ‘canadacovid-Ex.R’ failed
The error most likely occurred in:

> ### Name: get_regions
> ### Title: Get health regions
> ### Aliases: get_regions
> 
> ### ** Examples
> 
> 
> get_regions()
Error in `map()`:
ℹ In index: 1.
Caused by error:
! API requested failed with code 500
Backtrace:
     ▆
  1. ├─canadacovid::get_regions()
  2. │ └─purrr::map_dfr(...)
  3. │   └─purrr::map(.x, .f, ...)
  4. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
  5. │       ├─purrr:::with_indexed_errors(...)
  6. │       │ └─base::withCallingHandlers(...)
  7. │       ├─purrr:::call_with_cleanup(...)
  8. │       └─canadacovid (local) .f(.x[[i]], ...)
  9. │         └─canadacovid::get_content_parsed(url)
 10. │           └─base::stop(...)
 11. └─base::.handleSimpleError(...)
 12.   └─purrr (local) h(simpleError(msg, call))
 13.     └─cli::cli_abort(...)
 14.       └─rlang::abort(...)
Execution halted
Running examples in 'canadacovid-Ex.R' failed
The error most likely occurred in:

> ### Name: get_regions
> ### Title: Get health regions
> ### Aliases: get_regions
> 
> ### ** Examples
> 
> 
> get_regions()
Error in `map()`:
ℹ In index: 1.
Caused by error:
! API requested failed with code 500
Backtrace:
     ▆
  1. ├─canadacovid::get_regions()
  2. │ └─purrr::map_dfr(...)
  3. │   └─purrr::map(.x, .f, ...)
  4. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
  5. │       ├─purrr:::with_indexed_errors(...)
  6. │       │ └─base::withCallingHandlers(...)
  7. │       ├─purrr:::call_with_cleanup(...)
  8. │       └─canadacovid (local) .f(.x[[i]], ...)
  9. │         └─canadacovid::get_content_parsed(url)
 10. │           └─base::stop(...)
 11. └─base::.handleSimpleError(...)
 12.   └─purrr (local) h(simpleError(msg, call))
 13.     └─cli::cli_abort(...)
 14.       └─rlang::abort(...)
Execution halted
Running examples in ‘canadacovid-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_regions
> ### Title: Get health regions
> ### Aliases: get_regions
> 
> ### ** Examples
> 
> 
> get_regions()
Error in `map()`:
ℹ In index: 1.
Caused by error:
! API requested failed with code 500
Backtrace:
     ▆
  1. ├─canadacovid::get_regions()
  2. │ └─purrr::map_dfr(...)
  3. │   └─purrr::map(.x, .f, ...)
  4. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
  5. │       ├─purrr:::with_indexed_errors(...)
  6. │       │ └─base::withCallingHandlers(...)
  7. │       ├─purrr:::call_with_cleanup(...)
  8. │       └─canadacovid (local) .f(.x[[i]], ...)
  9. │         └─canadacovid::get_content_parsed(url)
 10. │           └─base::stop(...)
 11. └─base::.handleSimpleError(...)
 12.   └─purrr (local) h(simpleError(msg, call))
 13.     └─cli::cli_abort(...)
 14.       └─rlang::abort(...)
Execution halted
Running examples in 'canadacovid-Ex.R' failed
The error most likely occurred in:

> ### Name: get_regions
> ### Title: Get health regions
> ### Aliases: get_regions
> 
> ### ** Examples
> 
> 
> get_regions()
Error in `map()`:
ℹ In index: 1.
Caused by error:
! API requested failed with code 500
Backtrace:
     ▆
  1. ├─canadacovid::get_regions()
  2. │ └─purrr::map_dfr(...)
  3. │   └─purrr::map(.x, .f, ...)
  4. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
  5. │       ├─purrr:::with_indexed_errors(...)
  6. │       │ └─base::withCallingHandlers(...)
  7. │       ├─purrr:::call_with_cleanup(...)
  8. │       └─canadacovid (local) .f(.x[[i]], ...)
  9. │         └─canadacovid::get_content_parsed(url)
 10. │           └─base::stop(...)
 11. └─base::.handleSimpleError(...)
 12.   └─purrr (local) h(simpleError(msg, call))
 13.     └─cli::cli_abort(...)
 14.       └─rlang::abort(...)
Execution halted
Running 'testthat.R' [410s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(canadacovid)
  > 
  > test_check("canadacovid")
  [ FAIL 1 | WARN 6 | SKIP 0 | PASS 58 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-regions.R:3:3'): get_regions works ─────────────────────────────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(.x, .f, ...)`: i In index: 1.
  Caused by error:
  ! API requested failed with code 500
  Backtrace:
       ▆
    1. ├─canadacovid::get_regions() at test-regions.R:3:2
    2. │ └─purrr::map_dfr(...)
    3. │   └─purrr::map(.x, .f, ...)
    4. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    5. │       ├─purrr:::with_indexed_errors(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       ├─purrr:::call_with_cleanup(...)
    8. │       └─canadacovid (local) .f(.x[[i]], ...)
    9. │         └─canadacovid::get_content_parsed(url)
   10. │           └─base::stop(...)
   11. └─base::.handleSimpleError(...)
   12.   └─purrr (local) h(simpleError(msg, call))
   13.     └─cli::cli_abort(...)
   14.       └─rlang::abort(...)
  
  [ FAIL 1 | WARN 6 | SKIP 0 | PASS 58 ]
  Error: Test failures
  Execution halted
Running examples in 'canadacovid-Ex.R' failed
The error most likely occurred in:

> ### Name: get_regions
> ### Title: Get health regions
> ### Aliases: get_regions
> 
> ### ** Examples
> 
> 
> get_regions()
Error in `map()`:
i In index: 1.
Caused by error:
! API requested failed with code 500
Backtrace:
     x
  1. +-canadacovid::get_regions()
  2. | \-purrr::map_dfr(...)
  3. |   \-purrr::map(.x, .f, ...)
  4. |     \-purrr:::map_("list", .x, .f, ..., .progress = .progress)
  5. |       +-purrr:::with_indexed_errors(...)
  6. |       | \-base::withCallingHandlers(...)
  7. |       +-purrr:::call_with_cleanup(...)
  8. |       \-canadacovid (local) .f(.x[[i]], ...)
  9. |         \-canadacovid::get_content_parsed(url)
 10. |           \-base::stop(...)
 11. \-base::.handleSimpleError(...)
 12.   \-purrr (local) h(simpleError(msg, call))
 13.     \-cli::cli_abort(...)
 14.       \-rlang::abort(...)
Execution halted
Running 'testthat.R' [413s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(canadacovid)
  > 
  > test_check("canadacovid")
  Initiating curl with CURL_SSL_BACKEND: openssl
  [ FAIL 1 | WARN 6 | SKIP 0 | PASS 58 ]
  
  == Failed tests ================================================================
  -- Error ('test-regions.R:3:3'): get_regions works -----------------------------
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(.x, .f, ...)`: i In index: 1.
  Caused by error:
  ! API requested failed with code 500
  Backtrace:
       x
    1. +-canadacovid::get_regions() at test-regions.R:3:2
    2. | \-purrr::map_dfr(...)
    3. |   \-purrr::map(.x, .f, ...)
    4. |     \-purrr:::map_("list", .x, .f, ..., .progress = .progress)
    5. |       +-purrr:::with_indexed_errors(...)
    6. |       | \-base::withCallingHandlers(...)
    7. |       +-purrr:::call_with_cleanup(...)
    8. |       \-canadacovid (local) .f(.x[[i]], ...)
    9. |         \-canadacovid::get_content_parsed(url)
   10. |           \-base::stop(...)
   11. \-base::.handleSimpleError(...)
   12.   \-purrr (local) h(simpleError(msg, call))
   13.     \-cli::cli_abort(...)
   14.       \-rlang::abort(...)
  
  [ FAIL 1 | WARN 6 | SKIP 0 | PASS 58 ]
  Error: Test failures
  Execution halted