Running ‘testthat.R’ [0m/16m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(RSocrata)
  > 
  > test_check("RSocrata")
  2017-06-15 17:46:09.574 getResponse: Error in httr GET: 400  http://soda.demo.socrata.com/resource/4334-bgaj.csv?%24select=Region&$order=:id
  2017-06-15 17:46:09.817 getResponse: Error in httr GET: 401  http://data.cityofchicago.org/resource/j8vp-2qpg.json?$order=:id
  2017-06-15 17:46:21.873 getResponse: Error in httr GET: 400  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id
  2017-06-15 17:46:22.837 getResponse: Error in httr GET: 400  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id
  2017-06-15 17:46:25.267 getResponse: Error in httr GET: 403  https://soda.demo.socrata.com/resource/a9g2-feh2.csv?$order=:id
  2017-06-15 17:46:26.160 getResponse: Error in httr GET: 403  https://soda.demo.socrata.com/resource/a9g2-feh2.json?$order=:id
  1. Failure: converts money fields to numeric (@test-all.R#471) -----------------
  "numeric" not equal to class(df$Employee.Annual.Salary).
  1/1 mismatches
  x[1]: "numeric"
  y[1]: "NULL"
  
  
  2. Error: add a row to a dataset (@test-all.R#488) -----------------------------
  parse error: premature EOF
                                         [ {   "x" : "-469",   "y" : "-2
                       (right here) ------^
  1: read.socrata(url = datasetToAddToUrl, email = socrataEmail, password = socrataPassword) at testthat/test-all.R:488
  2: getContentAsDataFrame(response)
  3: httr::content(response)
  4: parse_auto(raw, type, encoding, ...)
  5: parser(x = content, type = type, encoding = encoding, ...)
  6: jsonlite::fromJSON(parse_text(x, encoding = "UTF-8"), simplifyVector = simplifyVector, 
         ...)
  7: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  8: parseJSON(txt, bigint_as_char)
  9: parse_string(txt, bigint_as_char)
  
  testthat results ================================================================
  OK: 154 SKIPPED: 0 FAILED: 2
  1. Failure: converts money fields to numeric (@test-all.R#471) 
  2. Error: add a row to a dataset (@test-all.R#488) 
  
  Error: testthat unit tests failed
  Execution halted