Running ‘testthat.R’ [44s/186s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(CDCPLACES)
  > 
  > test_check("CDCPLACES")
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 49 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_places.R:109:9'): function accesses census api 2023(one state, one measure) ──
  Error in `tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), 
      col = c(geolocation))`: `data` must be a data frame, not an empty list.
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test-get_places.R:109:9
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─CDCPLACES::get_places(...)
    5.   └─CDCPLACES:::parse_request(places1)
    6.     ├─dplyr::rename(...)
    7.     ├─tidyr::unnest_wider(...)
    8.     │ └─tidyr:::check_data_frame(data)
    9.     │   └─base::is.data.frame(x)
   10.     └─tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), col = c(geolocation))
   11.       └─tidyr:::check_data_frame(data)
   12.         └─cli::cli_abort(...)
   13.           └─rlang::abort(...)
  ── Error ('test-get_places.R:116:9'): function accesses census api2020(multiple states, one measure) ──
  Error in `tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), 
      col = c(geolocation))`: `data` must be a data frame, not an empty list.
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test-get_places.R:116:9
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─CDCPLACES::get_places(...)
    5.   └─CDCPLACES:::parse_request(places1)
    6.     ├─dplyr::rename(...)
    7.     ├─tidyr::unnest_wider(...)
    8.     │ └─tidyr:::check_data_frame(data)
    9.     │   └─base::is.data.frame(x)
   10.     └─tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), col = c(geolocation))
   11.       └─tidyr:::check_data_frame(data)
   12.         └─cli::cli_abort(...)
   13.           └─rlang::abort(...)
  ── Error ('test-get_places.R:116:9'): function accesses census api2021(multiple states, one measure) ──
  Error in `tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), 
      col = c(geolocation))`: `data` must be a data frame, not an empty list.
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test-get_places.R:116:9
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─CDCPLACES::get_places(...)
    5.   └─CDCPLACES:::parse_request(places1)
    6.     ├─dplyr::rename(...)
    7.     ├─tidyr::unnest_wider(...)
    8.     │ └─tidyr:::check_data_frame(data)
    9.     │   └─base::is.data.frame(x)
   10.     └─tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), col = c(geolocation))
   11.       └─tidyr:::check_data_frame(data)
   12.         └─cli::cli_abort(...)
   13.           └─rlang::abort(...)
  ── Error ('test-get_places.R:116:9'): function accesses census api2022(multiple states, one measure) ──
  Error in `tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), 
      col = c(geolocation))`: `data` must be a data frame, not an empty list.
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test-get_places.R:116:9
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─CDCPLACES::get_places(...)
    5.   └─CDCPLACES:::parse_request(places1)
    6.     ├─dplyr::rename(...)
    7.     ├─tidyr::unnest_wider(...)
    8.     │ └─tidyr:::check_data_frame(data)
    9.     │   └─base::is.data.frame(x)
   10.     └─tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), col = c(geolocation))
   11.       └─tidyr:::check_data_frame(data)
   12.         └─cli::cli_abort(...)
   13.           └─rlang::abort(...)
  ── Error ('test-get_places.R:116:9'): function accesses census api2023(multiple states, one measure) ──
  Error in `tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), 
      col = c(geolocation))`: `data` must be a data frame, not an empty list.
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test-get_places.R:116:9
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─CDCPLACES::get_places(...)
    5.   └─CDCPLACES:::parse_request(places1)
    6.     ├─dplyr::rename(...)
    7.     ├─tidyr::unnest_wider(...)
    8.     │ └─tidyr:::check_data_frame(data)
    9.     │   └─base::is.data.frame(x)
   10.     └─tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), col = c(geolocation))
   11.       └─tidyr:::check_data_frame(data)
   12.         └─cli::cli_abort(...)
   13.           └─rlang::abort(...)
  ── Error ('test-get_places.R:133:9'): function access census api2023(multiple measures, multiple states), more states ──
  Error in `tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), 
      col = c(geolocation))`: `data` must be a data frame, not an empty list.
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test-get_places.R:133:9
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─CDCPLACES::get_places(...)
    5.   └─CDCPLACES:::parse_request(places1)
    6.     ├─dplyr::rename(...)
    7.     ├─tidyr::unnest_wider(...)
    8.     │ └─tidyr:::check_data_frame(data)
    9.     │   └─base::is.data.frame(x)
   10.     └─tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), col = c(geolocation))
   11.       └─tidyr:::check_data_frame(data)
   12.         └─cli::cli_abort(...)
   13.           └─rlang::abort(...)
  ── Error ('test-get_places.R:139:9'): function access census api2023(multiple measures, multiple states), more measures ──
  Error in `tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), 
      col = c(geolocation))`: `data` must be a data frame, not an empty list.
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test-get_places.R:139:9
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─CDCPLACES::get_places(...)
    5.   └─CDCPLACES:::parse_request(places1)
    6.     ├─dplyr::rename(...)
    7.     ├─tidyr::unnest_wider(...)
    8.     │ └─tidyr:::check_data_frame(data)
    9.     │   └─base::is.data.frame(x)
   10.     └─tidyr::unnest_wider(yyjsonr::read_json_str(httr2::resp_body_string(x)), col = c(geolocation))
   11.       └─tidyr:::check_data_frame(data)
   12.         └─cli::cli_abort(...)
   13.           └─rlang::abort(...)
  
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 49 ]
  Error: Test failures
  Execution halted