Running 'testthat.R' [12s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(RSocrata)
  > 
  > test_check("RSocrata")
  2019-09-22 05:06:59.208 getResponse: Error in httr GET: 503  http://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  -- 1. Error: read Socrata CSV is compatible with posixify (@test-all.R#17)  ----
  Service Unavailable (HTTP 503).
  1: read.socrata("http://soda.demo.socrata.com/resource/4334-bgaj.csv") at testthat/test-all.R:17
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:06:59.942 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/9szf-fbd4.json?$order=:id  
  -- 2. Error: read Socrata JSON is compatible with posixify (issue 85) (@test-all
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/resource/9szf-fbd4.json") at testthat/test-all.R:24
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:00.659 getResponse: Error in httr GET: 503  https://data.cityofnewyork.us/resource/qcdj-rwhu.json?$order=:id  
  -- 3. Error: read Socrata JSON that uses ISO 8601 but does not specify subsecond
  Service Unavailable (HTTP 503).
  1: read.socrata("https://data.cityofnewyork.us/resource/qcdj-rwhu.json") at testthat/test-all.R:30
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:01.034 getResponse: Error in httr GET: 503  http://data.cityofchicago.org/resource/y93d-d9e3.csv?%24order=debarment_date  
  -- 4. Error: Calendar Date Short (@test-all.R#60)  -----------------------------
  Service Unavailable (HTTP 503).
  1: read.socrata("http://data.cityofchicago.org/resource/y93d-d9e3.csv?$order=debarment_date") at testthat/test-all.R:60
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:01.502 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/4h87-zdcp.csv?$order=:id  
  -- 5. Error: Date is not entirely NA if the first record is bad (issue 68) (@tes
  Service Unavailable (HTTP 503).
  1: read.socrata("https://data.cityofchicago.org/resource/4h87-zdcp.csv") at testthat/test-all.R:78
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:01.642 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/xzkq-xp2w.csv?$order=:id  
  -- 6. Error: converts money fields to numeric from Socrata (@test-all.R#104)  --
  Service Unavailable (HTTP 503).
  1: read.socrata("https://data.cityofchicago.org/Administration-Finance/Current-Employee-Names-Salaries-and-Position-Title/xzkq-xp2w") at testthat/test-all.R:104
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:01.767 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  -- 7. Error: read Socrata CSV as default (@test-all.R#112)  --------------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.csv") at testthat/test-all.R:112
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:02.250 getResponse: Error in httr GET: 503  https://odn.data.socrata.com/resource/pvug-y23y.csv?$order=:id  
  -- 8. Error: read Socrata CSV from New Backend (NBE) endpoint (@test-all.R#123) 
  Service Unavailable (HTTP 503).
  1: read.socrata("https://odn.data.socrata.com/resource/pvug-y23y.csv") at testthat/test-all.R:123
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:04.154 getResponse: Error in httr GET: 503  https://data.healthcare.gov/resource/enx3-h2qp.csv?%24limit=1000&$order=:id
  -- 9. Error: Warn instead of fail if X-SODA2-* headers are missing (@test-all.R#
  Service Unavailable (HTTP 503).
  1: expect_warning(dfCsv <- read.socrata("https://data.healthcare.gov/resource/enx3-h2qp.csv?$limit=1000"), 
         info = "https://github.com/Chicago/RSocrata/issues/118") at testthat/test-all.R:132
  2: quasi_capture(enquo(object), label, capture_warnings)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(.quo), get_env(.quo))
  6: read.socrata("https://data.healthcare.gov/resource/enx3-h2qp.csv?$limit=1000")
  7: getResponse(validUrl, email, password)
  8: httr::stop_for_status(response)
  
  2019-09-22 05:07:04.264 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  -- 10. Error: read Socrata CSV as character (@test-all.R#145)  -----------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.csv", stringsAsFactors = FALSE) at testthat/test-all.R:145
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:04.406 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  -- 11. Error: read Socrata CSV as factor (@test-all.R#156)  --------------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.csv", stringsAsFactors = TRUE) at testthat/test-all.R:156
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:04.531 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.json?$order=:id  
  -- 12. Error: read Socrata JSON as default (@test-all.R#168)  ------------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.json") at testthat/test-all.R:168
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:04.671 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.json?$order=:id  
  -- 13. Error: read Socrata JSON as character (@test-all.R#179)  ----------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.json", stringsAsFactors = FALSE) at testthat/test-all.R:179
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:04.796 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.json?$order=:id  
  -- 14. Error: read Socrata JSON as factor (@test-all.R#191)  -------------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.json", stringsAsFactors = TRUE) at testthat/test-all.R:191
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:05.030 getResponse: Error in httr GET: 503  http://soda.demo.socrata.com/resource/4334-bgaj.csv?%24select=region&$order=:id  
  -- 15. Error: readSoQL (@test-all.R#207)  --------------------------------------
  Service Unavailable (HTTP 503).
  1: read.socrata("http://soda.demo.socrata.com/resource/4334-bgaj.csv?$select=region") at testthat/test-all.R:207
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:05.249 getResponse: Error in httr GET: 503  http://data.cityofchicago.org/resource/j8vp-2qpg.json?$order=:id  
  2019-09-22 05:07:05.373 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  -- 16. Error: readSocrataHumanReadable (@test-all.R#217)  ----------------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/dataset/USGS-Earthquake-Reports/4334-bgaj") at testthat/test-all.R:217
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:05.498 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  -- 17. Error: Read URL provided by data.json from ls.socrata() - CSV (@test-all.
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/api/views/4334-bgaj/rows.csv?accessType=DOWNLOAD") at testthat/test-all.R:223
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:05.623 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  -- 18. Error: Read URL provided by data.json from ls.socrata() - JSON (@test-all
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/api/views/4334-bgaj/rows.json?accessType=DOWNLOAD") at testthat/test-all.R:229
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:05.982 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/kn9c-c2s2.json?$order=:id  
  -- 19. Failure: read Socrata JSON with missing fields (issue 19 - bind within pa
  `df <- read.socrata("https://data.cityofchicago.org/resource/kn9c-c2s2.json")` threw an error.
  Message: Service Unavailable (HTTP 503).
  Class:   http_503/http_500/http_error/error/condition
  https://github.com/Chicago/RSocrata/issues/19
  
  -- 20. Failure: read Socrata JSON with missing fields (issue 19 - bind within pa
  rows not equal to nrow(df).
  Types not compatible: double is not NULL
  https://github.com/Chicago/RSocrata/issues/19
  
  -- 21. Failure: read Socrata JSON with missing fields (issue 19 - bind within pa
  columns not equal to ncol(df).
  Types not compatible: double is not NULL
  https://github.com/Chicago/RSocrata/issues/19
  
  2019-09-22 05:07:06.481 getResponse: Error in httr GET: 503  https://data.smgov.net/resource/ia9m-wspt.json?%24where=incident_date%3E%3D%272011-01-01%27%20AND%20incident_date%3C%272011-01-15%27&$order=:id  
  -- 22. Error: read Socrata JSON with missing fields (issue 19 - binding pages to
  Service Unavailable (HTTP 503).
  1: read.socrata(paste0("https://data.smgov.net/resource/ia9m-wspt.json?", "$where=incident_date>='2011-01-01'%20AND%20incident_date<'2011-01-15'")) at testthat/test-all.R:260
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:06.715 getResponse: Error in httr GET: 503  http://soda.demo.socrata.com/resource/4334-bgaj.json?%24LIMIT=500&$order=:id  
  -- 23. Error: Accept a URL with a $limit= clause and properly limit the results 
  Service Unavailable (HTTP 503).
  1: read.socrata("http://soda.demo.socrata.com/resource/4334-bgaj.json?$LIMIT=500") at testthat/test-all.R:269
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:06.840 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/kn9c-c2s2.json?$order=:id  
  -- 24. Error: If URL has no queries, insert $order:id into URL (@test-all.R#286)
  Service Unavailable (HTTP 503).
  1: read.socrata("https://data.cityofchicago.org/resource/kn9c-c2s2.json") at testthat/test-all.R:286
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:06.965 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/kn9c-c2s2.json?%24order=hardship_index  
  -- 25. Error: If URL has an $order clause, do not insert ?$order:id into URL (@t
  Service Unavailable (HTTP 503).
  1: read.socrata("https://data.cityofchicago.org/resource/kn9c-c2s2.json?$order=hardship_index") at testthat/test-all.R:301
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:07.089 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/kn9c-c2s2.json?%24limit=50&$order=:id  
  -- 26. Error: If URL has only non-order query parameters, insert $order:id into 
  Service Unavailable (HTTP 503).
  1: read.socrata("https://data.cityofchicago.org/resource/kn9c-c2s2.json?$limit=50") at testthat/test-all.R:315
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:07.214 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/wrvz-psew.csv?%24select=count%28trip_id%29&%24where=trip_start_timestamp%20between%20%272016-04-01T00%3A00%3A00%27%20and%20%272016-04-05T00%3A00%3A00%27  
  -- 27. Error: Handle URL with query that does not return :id (@test-all.R#339)  
  Service Unavailable (HTTP 503).
  1: read.socrata(qurl) at testthat/test-all.R:339
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:07.370 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  -- 28. Error: CSV with Token (@test-all.R#370)  --------------------------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.csv", app_token = "ew2rEMuESuzWPqMkyPfOSGJgE") at testthat/test-all.R:370
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:07.479 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  -- 29. Error: readSocrataHumanReadableToken (@test-all.R#377)  -----------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/dataset/USGS-Earthquake-Reports/4334-bgaj", 
         app_token = "ew2rEMuESuzWPqMkyPfOSGJgE") at testthat/test-all.R:377
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:07.620 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  -- 30. Error: API Conflict (@test-all.R#383)  ----------------------------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.csv?$$app_token=ew2rEMuESuzWPqMkyPfOSGJgE", 
         app_token = "ew2rEMuESuzWPqMkyPfOSUSER") at testthat/test-all.R:383
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:07.745 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  -- 31. Error: readAPIConflictHumanReadable (@test-all.R#391)  ------------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/dataset/USGS-Earthquake-Reports/4334-bgaj?$$app_token=ew2rEMuESuzWPqMkyPfOSGJgE", 
         app_token = "ew2rEMuESuzWPqMkyPfOSUSER") at testthat/test-all.R:391
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:07.885 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  2019-09-22 05:07:08.010 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  -- 32. Error: incorrect API Query (@test-all.R#402)  ---------------------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.csv?$$app_token=ew2rEMuESuzWPqMkyPfOSGJgE") at testthat/test-all.R:402
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:08.135 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24where=magnitude%20%3E%203.0&%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  -- 33. Error: Ensure filtering and app tokens can coexist - API (@test-all.R#409
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.csv?$where=magnitude > 3.0", 
         app_token = "ew2rEMuESuzWPqMkyPfOSGJgE") at testthat/test-all.R:409
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:08.259 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  2019-09-22 05:07:08.384 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  -- 34. Error: incorrect API Query Human Readable (@test-all.R#417)  ------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/dataset/USGS-Earthquake-Reports/4334-bgaj?$$app_token=ew2rEMuESuzWPqMkyPfOSGJgE") at testthat/test-all.R:417
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-09-22 05:07:08.509 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  -- 35. Error: Handle /data suffix (@test-all.R#425)  ---------------------------
  Service Unavailable (HTTP 503).
  1: read.socrata("https://soda.demo.socrata.com/dataset/USGS-Earthquake-Reports/4334-bgaj/data") at testthat/test-all.R:425
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  -- 36. Error: List datasets available from a Socrata domain (@test-all.R#438)  -
  lexical error: invalid char in json text.
                                         <!DOCTYPE html PUBLIC "-//W3C//
                       (right here) ------^
  1: ls.socrata("https://soda.demo.socrata.com") at testthat/test-all.R:438
  2: jsonlite::fromJSON(content(response, "text"))
  3: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  4: parseJSON(txt, bigint_as_char)
  5: parse_string(txt, bigint_as_char)
  
  -- 37. Error: Catalog Fields are assigned as attributes when listing data sets (
  lexical error: invalid char in json text.
                                         <!DOCTYPE html PUBLIC "-//W3C//
                       (right here) ------^
  1: ls.socrata("https://soda.demo.socrata.com") at testthat/test-all.R:451
  2: jsonlite::fromJSON(content(response, "text"))
  3: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  4: parseJSON(txt, bigint_as_char)
  5: parse_string(txt, bigint_as_char)
  
  2019-09-22 05:07:08.889 getResponse: Error in httr GET: 503  https://data.smgov.net/resource/xx64-wi4x.json?%24select=incident_number%2Cincident_date%2Ccall_type%2Creceived_time%2Ccleared_time%2Ccensus_tract_2010_geoid&%24where=incident_date%3D%272016-08-27%27%20and%20census_tract_2010_geoid%20is%20not%20null&$order=:id  
  -- 38. Error: getContentAsDataFrame does not get caught in infinite loop (@test-
  Service Unavailable (HTTP 503).
  1: read.socrata(u) at testthat/test-all.R:536
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  == testthat results  ===========================================================
  [ OK: 31 | SKIPPED: 4 | WARNINGS: 3 | FAILED: 38 ]
  1. Error: read Socrata CSV is compatible with posixify (@test-all.R#17) 
  2. Error: read Socrata JSON is compatible with posixify (issue 85) (@test-all.R#24) 
  3. Error: read Socrata JSON that uses ISO 8601 but does not specify subseconds (@test-all.R#30) 
  4. Error: Calendar Date Short (@test-all.R#60) 
  5. Error: Date is not entirely NA if the first record is bad (issue 68) (@test-all.R#78) 
  6. Error: converts money fields to numeric from Socrata (@test-all.R#104) 
  7. Error: read Socrata CSV as default (@test-all.R#112) 
  8. Error: read Socrata CSV from New Backend (NBE) endpoint (@test-all.R#123) 
  9. Error: Warn instead of fail if X-SODA2-* headers are missing (@test-all.R#132) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted