Running 'testthat.R' [80s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(otargen)
  > 
  > test_check("otargen")
  \ Connecting the database...
  v Connecting the database... [28ms]
  
  \ Downloading data for ENSG00000169174 ...
  x Downloading data for ENSG00000169174 ... [10.1s]
  
  \ Connecting the database...
  v Connecting the database... [47ms]
  
  \ Downloading data...
  x Downloading data... [10.1s]
  
  \ Connecting to database..
  v Connecting to database.. [10ms]
  
  \ Downloading data for 1_154453788_C_T ...
  x Downloading data for 1_154453788_C_T ... [10s]
  
  \ Connecting the database...
  v Connecting the database... [12ms]
  
  \ Downloading data...
  v Downloading data... [908ms]
  
  \ Connecting the database...
  v Connecting the database... [12ms]
  
  \ Downloading data...
  x Downloading data... [140ms]
  
  \ Connecting the database...
  v Connecting the database... [10ms]
  
  \ Downloading data...
  v Downloading data... [169ms]
  
  \ Connecting the database...
  v Connecting the database... [10ms]
  
  \ Downloading the data...
  v Downloading the data... [814ms]
  
  \ Connecting the database...
  v Connecting the database... [12ms]
  
  \ Downloading the data...
  v Downloading the data... [200ms]
  
  \ Connecting the database...
  v Connecting the database... [10ms]
  
  \ Downloading data...
  v Downloading data... [82ms]
  
  \ Connecting the database...
  v Connecting the database... [9ms]
  
  \ Downloading data...
  v Downloading data... [556ms]
  
  \ Connecting to the database...
  v Connecting to the database... [8ms]
  
  \ Downloading data...
  v Downloading data... [204ms]
  
  \ Connecting the database...
  v Connecting the database... [8ms]
  
  \ Downloading data...
  v Downloading data... [113ms]
  
  \ Connecting to the database...
  v Connecting to the database... [23ms]
  
  \ Downloading data for variant 1_55063514_G_A ...
  v Downloading data for variant 1_55063514_G_A ... [66ms]
  
  \ Connecting to the database...
  v Connecting to the database... [58ms]
  
  \ Downloading data for variant rs72698179 ...
  v Downloading data for variant rs72698179 ... [68ms]
  
  \ Connecting the database...
  v Connecting the database... [8ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [171ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting the database...
  v Connecting the database... [10ms]
  
  \ Downloading data for ENSG00000167207 ...
  v Downloading data for ENSG00000167207 ... [163ms]
  
  \ Downloading data for ENSG00000096968 ...
  | Downloading data for ENSG00000096968 ...
  v Downloading data for ENSG00000096968 ... [328ms]
  
  \ Downloading data for ENSG00000138821 ...
  v Downloading data for ENSG00000138821 ... [168ms]
  
  \ Downloading data for ENSG00000125255 ...
  v Downloading data for ENSG00000125255 ... [140ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting the database...
  v Connecting the database... [64ms]
  
  \ Downloading data for ENSG00000141510 ...
  v Downloading data for ENSG00000141510 ... [638ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting the database...
  v Connecting the database... [161ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [150ms]
  
  \ Downloading data for ENSG00000163946 ...
  v Downloading data for ENSG00000163946 ... [255ms]
  
  \ Downloading data for ENSG00000141510 ...
  v Downloading data for ENSG00000141510 ... [407ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting the database...
  v Connecting the database... [9ms]
  
  \ Downloading data for ENSG00000167207 ...
  v Downloading data for ENSG00000167207 ... [4.9s]
  
  \ Downloading data for ENSG00000096968 ...
  v Downloading data for ENSG00000096968 ... [4.7s]
  
  \ Connecting the database...
  v Connecting the database... [11ms]
  
  \ Downloading data for ENSG00000167207 ...
  v Downloading data for ENSG00000167207 ... [4.9s]
  
  \ Downloading data for ENSG00000096968 ...
  v Downloading data for ENSG00000096968 ... [4.9s]
  
  \ Connecting to the database...
  v Connecting to the database... [11ms]
  
  \ Downloading data...
  v Downloading data... [712ms]
  
  \ Connecting to the database...
  v Connecting to the database... [10ms]
  
  \ Downloading data for variant 14_87978408_G_A ...
  v Downloading data for variant 14_87978408_G_A ... [88ms]
  
  \ Connecting to the database...
  v Connecting to the database... [82ms]
  
  \ Downloading data for variant rs55808324 ...
  v Downloading data for variant rs55808324 ... [80ms]
  
  \ Connecting to the database...
  v Connecting to the database... [11ms]
  
  \ Downloading data...
  v Downloading data... [144ms]
  
  \ Connecting the database...
  v Connecting the database... [20ms]
  
  \ Downloading data...
  v Downloading data... [73ms]
  
  \ Connecting the database...
  v Connecting the database... [126ms]
  
  \ Downloading data...
  v Downloading data... [99ms]
  
  \ Connecting the database...
  v Connecting the database... [11ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [5.4s]
  
  \ Connecting the database...
  v Connecting the database... [112ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [4.9s]
  
  \ Downloading data for ENSG00000163946 ...
  v Downloading data for ENSG00000163946 ... [4.8s]
  
  \ Connecting the database...
  x Connecting the database... [60ms]
  
  \ Connecting the database...
  v Connecting the database... [11ms]
  
  \ Downloading data...
  v Downloading data... [57ms]
  
  \ Connecting the database...
  v Connecting the database... [10ms]
  
  \ Downloading data for  GCST003044 , 14_88009660_C_T ...
  v Downloading data for  GCST003044 , 14_88009660_C_T ... [827ms]
  
  \ Connecting the database...
  v Connecting the database... [9ms]
  
  \ Downloading data...
  v Downloading data... [367ms]
  
  \ Connecting the database...
  v Connecting the database... [11ms]
  
  \ Downloading data...
  v Downloading data... [140ms]
  
  \ Connecting to the database...
  v Connecting to the database... [10ms]
  
  \ Downloading data...
  v Downloading data... [83ms]
  
  \ Connecting the database...
  v Connecting the database... [10ms]
  
  \ Downloading data...
  v Downloading data... [99ms]
  
  \ Connecting the database...
  v Connecting the database... [92ms]
  
  \ Downloading data...
  v Downloading data... [73ms]
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 66 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-colocalisationsForGene.R:2:3'): test colocalisationsForGene works ──
  Error in `curl::curl_fetch_memory(x$url$url, handle = x$url$handle)`: Timeout was reached: [api.genetics.opentargets.org] SSL/TLS connection timeout
  Backtrace:
      ▆
   1. └─otargen::colocalisationsForGene(genes = "ENSG00000169174") at test-colocalisationsForGene.R:2:2
   2.   └─con$exec(qry$queries$getgenColocal, variables)
   3.     ├─ghql:::cont(gh_POST(self$url, body, self$headers, ...), encoding = encoding)
   4.     └─ghql:::gh_POST(self$url, body, self$headers, ...)
   5.       └─con$post(body = body, encode = "json")
   6.         └─private$make_request(rr)
   7.           └─crul:::crul_fetch(opts)
   8.             └─curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  ── Error ('test-geneInfo.R:2:3'): test geneInfo works ──────────────────────────
  Error in `curl::curl_fetch_memory(x$url$url, handle = x$url$handle)`: Timeout was reached: [api.genetics.opentargets.org] SSL/TLS connection timeout
  Backtrace:
      ▆
   1. └─otargen::geneInfo(gene = "ENSG00000004864") at test-geneInfo.R:2:2
   2.   ├─jsonlite::fromJSON(...)
   3.   └─otg_cli$exec(otg_qry$queries$geneInfoQuery, variables)
   4.     ├─ghql:::cont(gh_POST(self$url, body, self$headers, ...), encoding = encoding)
   5.     └─ghql:::gh_POST(self$url, body, self$headers, ...)
   6.       └─con$post(body = body, encode = "json")
   7.         └─private$make_request(rr)
   8.           └─crul:::crul_fetch(opts)
   9.             └─curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  ── Error ('test-genesForVariant.R:2:5'): test genesForVariant works ────────────
  Error in `curl::curl_fetch_memory(x$url$url, handle = x$url$handle)`: Timeout was reached: [api.genetics.opentargets.org] Connection timeout after 10003 ms
  Backtrace:
      ▆
   1. └─otargen::genesForVariant(variant_id = "1_154453788_C_T") at test-genesForVariant.R:2:4
   2.   ├─jsonlite::fromJSON(...)
   3.   └─otg_cli$exec(otg_qry$queries$v2g_query, variables)
   4.     ├─ghql:::cont(gh_POST(self$url, body, self$headers, ...), encoding = encoding)
   5.     └─ghql:::gh_POST(self$url, body, self$headers, ...)
   6.       └─con$post(body = body, encode = "json")
   7.         └─private$make_request(rr)
   8.           └─crul:::crul_fetch(opts)
   9.             └─curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 66 ]
  Error: Test failures
  Execution halted