Running 'testthat.R' [72s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(otargen)
  > 
  > test_check("otargen")
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [61ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [619ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data for ENSG00000163946 ...
  v Downloading data for ENSG00000163946 ... [551ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [332ms]
  
  \ Downloading data for ENSG00000143001 ...
  v Downloading data for ENSG00000143001 ... [242ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [205ms]
  
  \ Downloading data for ENSG00000141510 ...
  | Downloading data for ENSG00000141510 ...
  v Downloading data for ENSG00000141510 ... [7.1s]
  
  \ Downloading data for ENSG00000163946 ...
  v Downloading data for ENSG00000163946 ... [371ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [321ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [89ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [219ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [13ms]
  
  \ Downloading data...
  v Downloading data... [118ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [83ms]
  
  \ Downloading data...
  v Downloading data... [96ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  x Connecting to the Open Targets Genetics GrpahQL API... [67ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [15ms]
  
  \ Downloading data for 1_154453788_C_T ...
  v Downloading data for 1_154453788_C_T ... [402ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [81ms]
  
  \ Downloading data for rs55808324 ...
  v Downloading data for rs55808324 ... [303ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [10ms]
  
  \ Downloading data...
  v Downloading data... [95ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data...
  x Downloading data... [86ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [12ms]
  
  \ Downloading data...
  v Downloading data... [157ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [16ms]
  
  \ Downloading the data...
  v Downloading the data... [75ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [10ms]
  
  \ Downloading the data...
  v Downloading the data... [86ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data...
  v Downloading data... [94ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data...
  v Downloading data... [796ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [11ms]
  
  \ Downloading data...
  v Downloading data... [287ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [10ms]
  
  \ Downloading data...
  v Downloading data... [441ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [9ms]
  
  \ Downloading data for variant 1_55063514_G_A ...
  v Downloading data for variant 1_55063514_G_A ... [96ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [74ms]
  
  \ Downloading data for variant rs72698179 ...
  v Downloading data for variant rs72698179 ... [116ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [9ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [217ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [14ms]
  
  \ Downloading data for ENSG00000167207 ...
  v Downloading data for ENSG00000167207 ... [238ms]
  
  \ Downloading data for ENSG00000096968 ...
  v Downloading data for ENSG00000096968 ... [454ms]
  
  \ Downloading data for ENSG00000138821 ...
  v Downloading data for ENSG00000138821 ... [385ms]
  
  \ Downloading data for ENSG00000125255 ...
  v Downloading data for ENSG00000125255 ... [241ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [98ms]
  
  \ Downloading data for ENSG00000141510 ...
  v Downloading data for ENSG00000141510 ... [704ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [311ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [248ms]
  
  \ Downloading data for ENSG00000163946 ...
  | Downloading data for ENSG00000163946 ...
  v Downloading data for ENSG00000163946 ... [4.6s]
  
  \ Downloading data for ENSG00000141510 ...
  v Downloading data for ENSG00000141510 ... [923ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [14ms]
  
  \ Downloading data for ENSG00000167207 ...
  v Downloading data for ENSG00000167207 ... [5.9s]
  
  \ Downloading data for ENSG00000096968 ...
  x Downloading data for ENSG00000096968 ... [10.1s]
  
  Error in test plot_l2g: Bad Gateway (HTTP 502)
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [10ms]
  
  \ Downloading data...
  v Downloading data... [1.5s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [16ms]
  
  \ Downloading data for variant 14_87978408_G_A ...
  v Downloading data for variant 14_87978408_G_A ... [145ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [74ms]
  
  \ Downloading data for variant rs55808324 ...
  v Downloading data for variant rs55808324 ... [245ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [12ms]
  
  \ Downloading data...
  v Downloading data... [104ms]
  
  \ Connecting the database...
  v Connecting the database... [16ms]
  
  \ Downloading data...
  v Downloading data... [113ms]
  
  \ Connecting the database...
  v Connecting the database... [185ms]
  
  \ Downloading data...
  v Downloading data... [547ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [6s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [172ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [5.7s]
  
  \ Downloading data for ENSG00000163946 ...
  x Downloading data for ENSG00000163946 ... [10.1s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data...
  v Downloading data... [81ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [15ms]
  
  \ Downloading data for  GCST003044 , 14_88009660_C_T ...
  v Downloading data for  GCST003044 , 14_88009660_C_T ... [2.2s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data...
  v Downloading data... [349ms]
  
  \ Connecting the database...
  v Connecting the database... [14ms]
  
  \ Downloading data...
  v Downloading data... [470ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data...
  v Downloading data... [183ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [15ms]
  
  \ Downloading data...
  v Downloading data... [407ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [134ms]
  
  \ Downloading data...
  v Downloading data... [247ms]
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 74 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-plot_l2g.R:23:5'): test plot_l2g works ───────────────────────
  FALSE is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  An error occurred in plotting.
  Backtrace:
      ▆
   1. └─base::tryCatch(...) at test-plot_l2g.R:3:3
   2.   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   3.     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   4.       └─value[[3L]](cond)
   5.         └─testthat::expect_true(FALSE, "An error occurred in plotting.") at test-plot_l2g.R:23:5
  ── Error ('test-studiesAndLeadVariantsForGeneByL2G.R:3:3'): test studiesAndLeadVariantsForGeneByL2G works ──
  Error: Bad Gateway (HTTP 502)
  Backtrace:
      ▆
   1. └─otargen::studiesAndLeadVariantsForGeneByL2G(...) at test-studiesAndLeadVariantsForGeneByL2G.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 2 | WARN 0 | SKIP 0 | PASS 74 ]
  Error: Test failures
  Execution halted