Running ‘testthat.R’ [30s/543s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rPDBapi)
  > 
  > test_check("rPDBapi")
  [ FAIL 4 | WARN 920 | SKIP 0 | PASS 65 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_data_fetcher.R:11:3'): data_fetcher returns correct structure ──
  Error in `value[[3L]](cond)`: Failed to fetch data from PDB. Error: ERROR: GraphQL query execution failed. Details: Request failed.
  Backtrace:
      ▆
   1. └─rPDBapi::data_fetcher(...) at test_data_fetcher.R:11:3
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond)
  ── Failure ('test_find_results.R:6:3'): find_papers returns correct paper titles ──
  length(result) > 0 is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error ('test_find_results.R:7:3'): find_papers returns correct paper titles ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `result[[1]]`: subscript out of bounds
  Backtrace:
      ▆
   1. └─testthat::expect_type(result[[1]], "character") at test_find_results.R:7:3
   2.   └─testthat::quasi_label(enquo(object), arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test_get_info.R:3:3'): get_info retrieves correct PDB information ───
  Error in `value[[3L]](cond)`: API Error: Failed to retrieve data for PDB ID '4HHB'. Error: HTTP Error: Request to https://data.rcsb.org/rest/v1/core/entry/4HHB failed with status:  - Server error: (503) Service Unavailable
  Backtrace:
      ▆
   1. └─rPDBapi::get_info("4HHB") at test_get_info.R:3:3
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond)
  
  [ FAIL 4 | WARN 920 | SKIP 0 | PASS 65 ]
  Error: Test failures
  Execution halted