Running 'testthat.R' [87s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(crosstalkr)
  > 
  > test_check("crosstalkr")
  [ FAIL 2 | WARN 5 | SKIP 3 | PASS 72 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  • skipping due to long download times (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-ppi_ingest.R:18'): prep_stringdb works for multiple species ────
  Error in `open.connection(file, "rt")`: cannot open the connection to 'https://string-db.org/api/tsv-no-header/version'
  Backtrace:
       ▆
    1. ├─testthat::expect_true(igraph::is.igraph(prep_stringdb(species = "pseudomonas aeruginosa"))) at test-ppi_ingest.R:18:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─igraph::is.igraph(prep_stringdb(species = "pseudomonas aeruginosa"))
    5. │ └─"igraph" %in% class(graph)
    6. └─crosstalkr::prep_stringdb(species = "pseudomonas aeruginosa")
    7.   └─STRINGdb::STRINGdb$new(...)
    8.     └─methods::new(def, ...)
    9.       ├─methods::initialize(value, ...)
   10.       └─methods::initialize(value, ...)
   11.         └─.Object$initialize(...)
   12.           └─utils::read.table(...)
   13.             ├─base::open(file, "rt")
   14.             └─base::open.connection(file, "rt")
  ── Error ('test-ppi_ingest.R:25'): prep_stringdb works when providing taxon id directly ──
  Error in `open.connection(file, "rt")`: cannot open the connection to 'https://string-db.org/api/tsv-no-header/version'
  Backtrace:
       ▆
    1. ├─testthat::expect_true(igraph::is.igraph(prep_stringdb(species = "511145"))) at test-ppi_ingest.R:25:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─igraph::is.igraph(prep_stringdb(species = "511145"))
    5. │ └─"igraph" %in% class(graph)
    6. └─crosstalkr::prep_stringdb(species = "511145")
    7.   └─STRINGdb::STRINGdb$new(...)
    8.     └─methods::new(def, ...)
    9.       ├─methods::initialize(value, ...)
   10.       └─methods::initialize(value, ...)
   11.         └─.Object$initialize(...)
   12.           └─utils::read.table(...)
   13.             ├─base::open(file, "rt")
   14.             └─base::open.connection(file, "rt")
  
  [ FAIL 2 | WARN 5 | SKIP 3 | PASS 72 ]
  Error: Test failures
  Execution halted