Running ‘testthat.R’ [3s/76s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(xlm)
  > 
  > test_check("xlm")
  ── 1. Error: The response returns a list. (@test-friendbot.R#4)  ───────────────
  invalid JSON input
  1: friendbot("GAKYVLEN4MFPQ2R5Y4BA5RSJ7U5R2HGOK3VJ5PEUTLOHKTCBGCJZSHOS") at testthat/test-friendbot.R:4
  2: .getRequest("https://friendbot.stellar.org/", query_list)
  3: fromJSON(content(GET(url, query = params), as = "text"))
  4: fromJSON(content(GET(url, query = params), as = "text"))
  5: fromJSON(content, handler, default.size, depth, allowComments, asText = FALSE, data, 
         maxChar, simplify = simplify, ..., nullValue = nullValue, simplifyWithNames = simplifyWithNames, 
         encoding = encoding, stringFun = stringFun)
  6: fromJSON(content, handler, default.size, depth, allowComments, asText = FALSE, data, 
         maxChar, simplify = simplify, ..., nullValue = nullValue, simplifyWithNames = simplifyWithNames, 
         encoding = encoding, stringFun = stringFun)
  
  ── 2. Failure: Invalid accounts are handled appropriately. (@test-getAccountDeta
  `getAccountDetail(invalid_pk, domain = domain)` did not throw an error.
  
  ── 3. Failure: Error handling for bad public key. (@test-getTransactions_Account
  `getTransactions_Account(invalid_pk, domain = domain, data.table = FALSE)` threw an error with unexpected message.
  Expected match: "resource at the url requested was not found"
  Actual message: "invalid JSON input"
  
  ── 4. Failure: Horizon request with bad address returns an appropriate stop mess
  `.getRequest(url_bad)` did not throw an error.
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 340 SKIPPED: 0 FAILED: 4
  1. Error: The response returns a list. (@test-friendbot.R#4) 
  2. Failure: Invalid accounts are handled appropriately. (@test-getAccountDetail.R#18) 
  3. Failure: Error handling for bad public key. (@test-getTransactions_Account.R#34) 
  4. Failure: Horizon request with bad address returns an appropriate stop message. (@test-requestUtils.R#20) 
  
  Error: testthat unit tests failed
  Execution halted