Running ‘testthat.R’ [1s/81s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > #option(testthat.default_reporter = "summary")
  > test_check("iptmnetr")
  Loading required package: iptmnetr
  ── 1. Error: get_info returns valid data (@test_api.R#8)  ──────────────────────
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: get_info("Q15796") at testthat/test_api.R:8
  2: httr::GET(url)
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 2. Error: search returns valid data (@test_api.R#13)  ───────────────────────
  Timeout was reached: Connection timed out after 10000 milliseconds
  1: search_iptmnet("Smad2", TermType()$ProteinOrGeneName, Role()$EnzymeOrSubstrate) at testthat/test_api.R:13
  2: httr::GET(url, query = query_params, httr::add_headers(Accept = "text/plain"))
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 3. Error: get_substrates returns valid data (@test_api.R#20)  ───────────────
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: get_substrates("Q15796") at testthat/test_api.R:20
  2: httr::GET(url, httr::add_headers(Accept = "text/plain"))
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 4. Error: get_proteoforms returns valid data (@test_api.R#27)  ──────────────
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: get_proteoforms("Q15796") at testthat/test_api.R:27
  2: httr::GET(url, httr::add_headers(Accept = "text/plain"))
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 5. Error: get_ptmppi returns valid data (@test_api.R#34)  ───────────────────
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: get_ptm_dependent_ppi("Q15796") at testthat/test_api.R:34
  2: httr::GET(url, httr::add_headers(Accept = "text/plain"))
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 6. Error: test get_ppi_for_proteoforms returns valid data (@test_api.R#40)  ─
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: get_ppi_for_proteoforms("Q15796") at testthat/test_api.R:40
  2: httr::GET(url, httr::add_headers(Accept = "text/plain"))
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 7. Error: get_ptm_enzymes_from_list returns valid data (@test_api.R#63)  ────
  Timeout was reached: Connection timed out after 10000 milliseconds
  1: get_ptm_enzymes_from_list(substrates) at testthat/test_api.R:63
  2: httr::POST(url, body = items, encode = "json", httr::add_headers(Accept = "text/plain"))
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 8. Error: test get_ptm_ppi_from_list returns valid data (@test_api.R#93)  ───
  Timeout was reached: Connection timed out after 10000 milliseconds
  1: get_ptm_ppi_from_list(substrates) at testthat/test_api.R:93
  2: httr::POST(url, body = items, encode = "json", httr::add_headers(Accept = "text/plain"))
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 0 SKIPPED: 2 FAILED: 8
  1. Error: get_info returns valid data (@test_api.R#8) 
  2. Error: search returns valid data (@test_api.R#13) 
  3. Error: get_substrates returns valid data (@test_api.R#20) 
  4. Error: get_proteoforms returns valid data (@test_api.R#27) 
  5. Error: get_ptmppi returns valid data (@test_api.R#34) 
  6. Error: test get_ppi_for_proteoforms returns valid data (@test_api.R#40) 
  7. Error: get_ptm_enzymes_from_list returns valid data (@test_api.R#63) 
  8. Error: test get_ptm_ppi_from_list returns valid data (@test_api.R#93) 
  
  Error: testthat unit tests failed
  Execution halted