Running 'testthat.R' [11s/53s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(RSocrata)
  > 
  > test_check("RSocrata")
  -- 1. Failure: read Socrata CSV as default (@test-all.R#114)  ------------------
  testing column CSV classes with defaults not equal to unname(sapply(sapply(df, class), `[`, 1)).
  5/9 mismatches
  x[1]: "POSIXct"
  y[1]: "character"
  
  x[2]: "numeric"
  y[2]: "character"
  
  x[4]: "character"
  y[4]: "POSIXct"
  
  x[6]: "integer"
  y[6]: "numeric"
  
  x[7]: "character"
  y[7]: "integer"
  
  -- 2. Failure: read Socrata CSV from New Backend (NBE) endpoint (@test-all.R#124
  testing column CSV classes with defaults not equal to unname(sapply(sapply(df, class), `[`, 1)).
  2/4 mismatches
  x[3]: "integer"
  y[3]: "character"
  
  x[4]: "character"
  y[4]: "integer"
  
  -- 3. Failure: read Socrata CSV as character (@test-all.R#148)  ----------------
  c(...) not equal to unname(sapply(sapply(df, class), `[`, 1)).
  5/9 mismatches
  x[1]: "POSIXct"
  y[1]: "character"
  
  x[2]: "numeric"
  y[2]: "character"
  
  x[4]: "character"
  y[4]: "POSIXct"
  
  x[6]: "integer"
  y[6]: "numeric"
  
  x[7]: "character"
  y[7]: "integer"
  
  -- 4. Failure: read Socrata CSV as factor (@test-all.R#159)  -------------------
  c(...) not equal to unname(sapply(sapply(df, class), `[`, 1)).
  5/9 mismatches
  x[1]: "POSIXct"
  y[1]: "factor"
  
  x[2]: "numeric"
  y[2]: "factor"
  
  x[4]: "factor"
  y[4]: "POSIXct"
  
  x[6]: "integer"
  y[6]: "numeric"
  
  x[7]: "factor"
  y[7]: "integer"
  
  -- 5. Failure: read Socrata JSON as default (@test-all.R#170)  -----------------
  c(...) not equal to unname(sapply(sapply(df, class), `[`, 1)).
  2/10 mismatches
  x[1]: "POSIXct"
  y[1]: "character"
  
  x[4]: "character"
  y[4]: "POSIXct"
  
  -- 6. Failure: read Socrata JSON as character (@test-all.R#182)  ---------------
  c(...) not equal to unname(sapply(sapply(df, class), `[`, 1)).
  2/10 mismatches
  x[1]: "POSIXct"
  y[1]: "character"
  
  x[4]: "character"
  y[4]: "POSIXct"
  
  -- 7. Failure: read Socrata JSON as factor (@test-all.R#194)  ------------------
  c(...) not equal to unname(sapply(sapply(df, class), `[`, 1)).
  2/10 mismatches
  x[1]: "POSIXct"
  y[1]: "factor"
  
  x[4]: "factor"
  y[4]: "POSIXct"
  
  2019-06-13 19:19:53.844 getResponse: Error in httr GET: 401  http://data.cityofchicago.org/resource/j8vp-2qpg.json?$order=:id
  2019-06-13 19:20:14.181 getResponse: Error in httr GET: 400  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id
  2019-06-13 19:20:15.406 getResponse: Error in httr GET: 400  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id
  2019-06-13 19:20:18.364 getResponse: Error in httr GET: 403  https://soda.demo.socrata.com/resource/a9g2-feh2.csv?$order=:id
  2019-06-13 19:20:18.490 getResponse: Error in httr GET: 403  https://soda.demo.socrata.com/resource/a9g2-feh2.csv?$order=:id
  -- 8. Error: read Socrata CSV that requires a login (@test-all.R#463)  ---------
  Forbidden (HTTP 403).
  1: read.socrata(url = privateResourceToReadCsvUrl, email = socrataEmail, password = socrataPassword) at testthat/test-all.R:463
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  2019-06-13 19:20:18.912 getResponse: Error in httr GET: 403  https://soda.demo.socrata.com/resource/a9g2-feh2.json?$order=:id
  2019-06-13 19:20:19.051 getResponse: Error in httr GET: 403  https://soda.demo.socrata.com/resource/a9g2-feh2.json?$order=:id
  -- 9. Error: read Socrata JSON that requires a login (@test-all.R#473)  --------
  Forbidden (HTTP 403).
  1: read.socrata(url = privateResourceToReadJsonUrl, email = socrataEmail, password = socrataPassword) at testthat/test-all.R:473
  2: getResponse(validUrl, email, password)
  3: httr::stop_for_status(response)
  
  -- 10. Failure: add a row to a dataset (@test-all.R#493)  ----------------------
  res$status_code not equal to 200.
  1/1 mismatches
  [1] 403 - 200 == 203
  
  -- 11. Failure: fully replace a dataset (@test-all.R#510)  ---------------------
  res$status_code not equal to 200.
  1/1 mismatches
  [1] 403 - 200 == 203
  
  == testthat results  ===========================================================
  OK: 137 SKIPPED: 0 WARNINGS: 4 FAILED: 11
  1. Failure: read Socrata CSV as default (@test-all.R#114) 
  2. Failure: read Socrata CSV from New Backend (NBE) endpoint (@test-all.R#124) 
  3. Failure: read Socrata CSV as character (@test-all.R#148) 
  4. Failure: read Socrata CSV as factor (@test-all.R#159) 
  5. Failure: read Socrata JSON as default (@test-all.R#170) 
  6. Failure: read Socrata JSON as character (@test-all.R#182) 
  7. Failure: read Socrata JSON as factor (@test-all.R#194) 
  8. Error: read Socrata CSV that requires a login (@test-all.R#463) 
  9. Error: read Socrata JSON that requires a login (@test-all.R#473) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted