Running ‘testthat.R’ [3s/83s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(xlm)
  > 
  > test_check("xlm")
  ── 1. Error: 200 response is returned. (@test-distribution.R#4)  ───────────────
  cannot open the connection
  1: distribution() at testthat/test-distribution.R:4
  2: .getRequest("https://dashboard.stellar.org/api/lumens")
  3: fromJSON(content(GET(url, query = params), as = "text"))
  4: fromJSON(content(GET(url, query = params), as = "text"))
  5: I(suppressWarnings(paste(readLines(content), collapse = "\n")))
  6: structure(x, class = unique(c("AsIs", oldClass(x))))
  7: suppressWarnings(paste(readLines(content), collapse = "\n"))
  8: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  9: paste(readLines(content), collapse = "\n")
  10: readLines(content)
  11: file(con, "r")
  
  ── 2. 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)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 341 SKIPPED: 0 FAILED: 2
  1. Error: 200 response is returned. (@test-distribution.R#4) 
  2. Error: The response returns a list. (@test-friendbot.R#4) 
  
  Error: testthat unit tests failed
  Execution halted