Running ‘testthat.R’ [10s/108s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(RSocrata)
  > 
  > test_check("RSocrata")
  2022-11-09 00:09:48.922 getResponse: Error in httr GET: 403  https://data.cityofchicago.org/resource/j8vp-2qpg.json?$order=:id
  2022-11-09 00:11:06.136 getResponse: Error in httr GET: 400  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id
  2022-11-09 00:11:07.416 getResponse: Error in httr GET: 400  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id
  [ FAIL 2 | WARN 4 | SKIP 4 | PASS 134 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • See Issue #174 (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-all.R:284'): read Socrata JSON with missing fields (issue 19 - binding pages together) ──
  Error in `while (nrow(page) > 0 & !limitProvided) {
      query <- paste(validUrl, if (is.null(parsedUrl$query)) {
          "?"
      }
      else {
          "&"
      }, "$limit=50000&$offset=", nrow(result), sep = "")
      response <- getResponse(query, email, password)
      page <- getContentAsDataFrame(response)
      result <- rbind.fill(result, page)
  }`: argument is of length zero
  Backtrace:
      ▆
   1. └─RSocrata::read.socrata(...) at test-all.R:284:2
  ── Error ('test-all.R:560'): getContentAsDataFrame does not get caught in infinite loop ──
  Error in `while (nrow(page) > 0 & !limitProvided) {
      query <- paste(validUrl, if (is.null(parsedUrl$query)) {
          "?"
      }
      else {
          "&"
      }, "$limit=50000&$offset=", nrow(result), sep = "")
      response <- getResponse(query, email, password)
      page <- getContentAsDataFrame(response)
      result <- rbind.fill(result, page)
  }`: argument is of length zero
  Backtrace:
      ▆
   1. └─RSocrata::read.socrata(u) at test-all.R:560:2
  
  [ FAIL 2 | WARN 4 | SKIP 4 | PASS 134 ]
  Error: Test failures
  Execution halted