Running ‘testthat.R’ [12s/294s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(RSocrata)
  > 
  > test_check("RSocrata")
  2018-06-22 06:25:19.200 getResponse: Error in httr GET: 504  https://data.cityofchicago.org/resource/xzkq-xp2w.csv?$order=:id  
  ── 1. Error: converts money fields to numeric from Socrata (@test-all.R#102)  ──
  Gateway Timeout (HTTP 504).
  1: read.socrata("https://data.cityofchicago.org/Administration-Finance/Current-Employee-Names-Salaries-and-Position-Title/xzkq-xp2w") at testthat/test-all.R:102
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  ── 2. Error: Warn instead of fail if X-SODA2-* headers are missing (@test-all.R#
  Gateway Timeout (HTTP 504).
  1: expect_silent(df <- read.socrata("https://odn.data.socrata.com/resource/pvug-y23y.json")) at testthat/test-all.R:135
  2: quasi_capture(enquo(object), evaluate_promise)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  5: force(code)
  6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  7: withVisible(code)
  8: eval_bare(get_expr(quo), get_env(quo))
  9: read.socrata("https://odn.data.socrata.com/resource/pvug-y23y.json")
  10: getResponse(query, email, password)
  11: httr::stop_for_status(response)
  
  2018-06-22 06:27:35.239 getResponse: Error in httr GET: 504  https://soda.demo.socrata.com/resource/4334-bgaj.json?$order=:id&$limit=50000&$offset=1007  
  ── 3. Error: read Socrata JSON as character (@test-all.R#177)  ─────────────────
  Gateway Timeout (HTTP 504).
  1: read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.json", stringsAsFactors = FALSE) at testthat/test-all.R:177
  2: getResponse(query, email, password)
  3: httr::stop_for_status(response)
  
  2018-06-22 06:27:37.352 getResponse: Error in httr GET: 400  http://soda.demo.socrata.com/resource/4334-bgaj.csv?%24select=Region&$order=:id
  2018-06-22 06:27:37.651 getResponse: Error in httr GET: 401  http://data.cityofchicago.org/resource/j8vp-2qpg.json?$order=:id
  2018-06-22 06:28:51.719 getResponse: Error in httr GET: 504  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id&$limit=50000&$offset=1000  
  ── 4. Error: readSocrataHumanReadableToken (@test-all.R#380)  ──────────────────
  Gateway Timeout (HTTP 504).
  1: read.socrata("https://soda.demo.socrata.com/dataset/USGS-Earthquake-Reports/4334-bgaj", 
         app_token = "ew2rEMuESuzWPqMkyPfOSGJgE") at testthat/test-all.R:380
  2: getResponse(query, email, password)
  3: httr::stop_for_status(response)
  
  2018-06-22 06:28:53.692 getResponse: Error in httr GET: 400  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id
  2018-06-22 06:28:55.153 getResponse: Error in httr GET: 400  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id
  2018-06-22 06:28:58.787 getResponse: Error in httr GET: 403  https://soda.demo.socrata.com/resource/a9g2-feh2.csv?$order=:id
  2018-06-22 06:29:00.174 getResponse: Error in httr GET: 403  https://soda.demo.socrata.com/resource/a9g2-feh2.json?$order=:id
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 142 SKIPPED: 0 FAILED: 4
  1. Error: converts money fields to numeric from Socrata (@test-all.R#102) 
  2. Error: Warn instead of fail if X-SODA2-* headers are missing (@test-all.R#135) 
  3. Error: read Socrata JSON as character (@test-all.R#177) 
  4. Error: readSocrataHumanReadableToken (@test-all.R#380) 
  
  Error: testthat unit tests failed
  Execution halted