Running ‘testthat.R’ [12s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(available)
  > 
  > test_check("available")
  ── 1. Error: Can find  (@test-github.R#4)  ─────────────────────────────────────
  HTTP error 502.
  1: expect_false(available_on_github("svrepmisc")$available) at testthat/test-github.R:4
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: available_on_github("svrepmisc")
  5: gh_pkg(name)
  6: withVisible(`_f`(pkg = pkg))
  7: `_f`(pkg = pkg)
  8: jsonlite::fromJSON(paste0("http://rpkg-api.gepuro.net/rpkg?q=", pkg))
  9: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  10: parseJSON(txt, bigint_as_char)
  11: parse_con(txt, bigint_as_char)
  12: open(con, "rb")
  13: open.connection(con, "rb")
  
  ── 2. Error: Can't find made up package (@test-github.R#8)  ────────────────────
  HTTP error 502.
  1: expect_true(available_on_github("This_is_not_a_pkg")$available) at testthat/test-github.R:8
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: available_on_github("This_is_not_a_pkg")
  5: gh_pkg(name)
  6: withVisible(`_f`(pkg = pkg))
  7: `_f`(pkg = pkg)
  8: jsonlite::fromJSON(paste0("http://rpkg-api.gepuro.net/rpkg?q=", pkg))
  9: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  10: parseJSON(txt, bigint_as_char)
  11: parse_con(txt, bigint_as_char)
  12: open(con, "rb")
  13: open.connection(con, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 19 SKIPPED: 0 WARNINGS: 1 FAILED: 2
  1. Error: Can find  (@test-github.R#4) 
  2. Error: Can't find made up package (@test-github.R#8) 
  
  Error: testthat unit tests failed
  Execution halted