Running 'testthat.R' [14m]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(crimedata)
  > 
  > test_check("crimedata")
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 35 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_get_crime_data.R:4:3'): return value of get_crime_data is a tibble or SF object ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(.x, .f, ...)`: ℹ In index: 1.
  ℹ With name: sampleall cities2021.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached: [files.osf.io] SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─testthat::expect_is(get_crime_data(), "tbl_df") at test_get_crime_data.R:4:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─crimedata::get_crime_data()
    5. │ └─purrr::map_dfr(...)
    6. │   └─purrr::map(.x, .f, ...)
    7. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    8. │       ├─purrr:::with_indexed_errors(...)
    9. │       │ └─base::withCallingHandlers(...)
   10. │       ├─purrr:::call_with_cleanup(...)
   11. │       └─crimedata (local) .f(.x[[i]], ...)
   12. │         ├─base::writeBin(...)
   13. │         ├─httr::content(...)
   14. │         │ ├─base::stopifnot(is.response(x))
   15. │         │ └─httr:::is.response(x)
   16. │         └─httr::GET(x[["file_url"]], httr::progress(type = "down"))
   17. │           └─httr:::request_perform(req, hu$handle$handle)
   18. │             ├─httr:::request_fetch(req$output, req$url, handle)
   19. │             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   20. │               └─curl::curl_fetch_memory(url, handle = handle)
   21. └─base::.handleSimpleError(...)
   22.   └─purrr (local) h(simpleError(msg, call))
   23.     └─cli::cli_abort(...)
   24.       └─rlang::abort(...)
  ── Error ('test_get_crime_data.R:40:3'): partially missing data produce warnings ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(.x, .f, ...)`: ℹ In index: 1.
  ℹ With name: samplevirginia beach2013.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached: [files.osf.io] SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_get_crime_data.R:40:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─crimedata::get_crime_data(cities = "Virginia Beach", years = 2012:2013)
    7. │ └─purrr::map_dfr(...)
    8. │   └─purrr::map(.x, .f, ...)
    9. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
   10. │       ├─purrr:::with_indexed_errors(...)
   11. │       │ └─base::withCallingHandlers(...)
   12. │       ├─purrr:::call_with_cleanup(...)
   13. │       └─crimedata (local) .f(.x[[i]], ...)
   14. │         ├─base::writeBin(...)
   15. │         ├─httr::content(...)
   16. │         │ ├─base::stopifnot(is.response(x))
   17. │         │ └─httr:::is.response(x)
   18. │         └─httr::GET(x[["file_url"]], httr::progress(type = "down"))
   19. │           └─httr:::request_perform(req, hu$handle$handle)
   20. │             ├─httr:::request_fetch(req$output, req$url, handle)
   21. │             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   22. │               └─curl::curl_fetch_memory(url, handle = handle)
   23. └─base::.handleSimpleError(...)
   24.   └─purrr (local) h(simpleError(msg, call))
   25.     └─cli::cli_abort(...)
   26.       └─rlang::abort(...)
  ── Error ('test_get_crime_data.R:49:3'): quiet execution does not return any messages ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(.x, .f, ...)`: ℹ In index: 1.
  ℹ With name: sampleall cities2019.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached: [files.osf.io] SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test_get_crime_data.R:49:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─crimedata::get_crime_data(years = 2019, quiet = TRUE)
    7. │ └─purrr::map_dfr(...)
    8. │   └─purrr::map(.x, .f, ...)
    9. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
   10. │       ├─purrr:::with_indexed_errors(...)
   11. │       │ └─base::withCallingHandlers(...)
   12. │       ├─purrr:::call_with_cleanup(...)
   13. │       └─crimedata (local) .f(.x[[i]], ...)
   14. │         ├─base::writeBin(...)
   15. │         ├─httr::content(httr::GET(x[["file_url"]]), as = "raw")
   16. │         │ ├─base::stopifnot(is.response(x))
   17. │         │ └─httr:::is.response(x)
   18. │         └─httr::GET(x[["file_url"]])
   19. │           └─httr:::request_perform(req, hu$handle$handle)
   20. │             ├─httr:::request_fetch(req$output, req$url, handle)
   21. │             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   22. │               └─curl::curl_fetch_memory(url, handle = handle)
   23. └─base::.handleSimpleError(...)
   24.   └─purrr (local) h(simpleError(msg, call))
   25.     └─cli::cli_abort(...)
   26.       └─rlang::abort(...)
  ── Error ('test_get_crime_data.R:55:3'): data cache works as expected ──────────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(.x, .f, ...)`: ℹ In index: 1.
  ℹ With name: sampledetroit2021.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached: [files.osf.io] SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─crimedata::get_crime_data(cities = "Detroit") at test_get_crime_data.R:55: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. │       └─crimedata (local) .f(.x[[i]], ...)
    9. │         ├─base::writeBin(...)
   10. │         ├─httr::content(...)
   11. │         │ ├─base::stopifnot(is.response(x))
   12. │         │ └─httr:::is.response(x)
   13. │         └─httr::GET(x[["file_url"]], httr::progress(type = "down"))
   14. │           └─httr:::request_perform(req, hu$handle$handle)
   15. │             ├─httr:::request_fetch(req$output, req$url, handle)
   16. │             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   17. │               └─curl::curl_fetch_memory(url, handle = handle)
   18. └─base::.handleSimpleError(...)
   19.   └─purrr (local) h(simpleError(msg, call))
   20.     └─cli::cli_abort(...)
   21.       └─rlang::abort(...)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 35 ]
  Error: Test failures
  Execution halted