Running ‘testthat.R’ [16s/84s]
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... [65ms]
  
  \ Downloading data for ENSG00000169174 ...
  | Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [2.3s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [22ms]
  
  \ Downloading data for ENSG00000163946 ...
  v Downloading data for ENSG00000163946 ... [588ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [204ms]
  
  \ Downloading data for ENSG00000143001 ...
  v Downloading data for ENSG00000143001 ... [372ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [326ms]
  
  \ Downloading data for ENSG00000141510 ...
  v Downloading data for ENSG00000141510 ... [632ms]
  
  \ Downloading data for ENSG00000163946 ...
  v Downloading data for ENSG00000163946 ... [311ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [285ms]
  
  \ 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 ... [283ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [20ms]
  
  \ Downloading data...
  v Downloading data... [156ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [1s]
  
  \ Downloading data...
  v Downloading data... [212ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  x Connecting to the Open Targets Genetics GrpahQL API... [441ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [27ms]
  
  \ Downloading data for 1_154453788_C_T ...
  v Downloading data for 1_154453788_C_T ... [493ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [1.2s]
  
  \ Downloading data for rs55808324 ...
  | Downloading data for rs55808324 ...
  v Downloading data for rs55808324 ... [390ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data...
  v Downloading data... [128ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [32ms]
  
  \ Downloading data...
  x Downloading data... [169ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [21ms]
  
  \ Downloading data...
  v Downloading data... [156ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [17ms]
  
  \ Downloading the data...
  v Downloading the data... [111ms]
  
  \ 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... [153ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [37ms]
  
  \ Downloading data...
  v Downloading data... [126ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data...
  v Downloading data... [1.3s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [31ms]
  
  \ Downloading data...
  v Downloading data... [1.9s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data...
  v Downloading data... [382ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [18ms]
  
  \ Downloading data for variant 1_55063514_G_A ...
  v Downloading data for variant 1_55063514_G_A ... [236ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [112ms]
  
  \ Downloading data for variant rs72698179 ...
  v Downloading data for variant rs72698179 ... [147ms]
  
  \ 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 ... [359ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data for ENSG00000167207 ...
  v Downloading data for ENSG00000167207 ... [802ms]
  
  \ Downloading data for ENSG00000096968 ...
  v Downloading data for ENSG00000096968 ... [877ms]
  
  \ Downloading data for ENSG00000138821 ...
  | Downloading data for ENSG00000138821 ...
  v Downloading data for ENSG00000138821 ... [390ms]
  
  \ Downloading data for ENSG00000125255 ...
  v Downloading data for ENSG00000125255 ... [271ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [289ms]
  
  \ Downloading data for ENSG00000141510 ...
  v Downloading data for ENSG00000141510 ... [1.7s]
  
  Selecting by Trait_reported_trimmed
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [412ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [249ms]
  
  \ Downloading data for ENSG00000163946 ...
  v Downloading data for ENSG00000163946 ... [744ms]
  
  \ Downloading data for ENSG00000141510 ...
  v Downloading data for ENSG00000141510 ... [629ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [32ms]
  
  \ Downloading data for ENSG00000167207 ...
  v Downloading data for ENSG00000167207 ... [4.8s]
  
  \ Downloading data for ENSG00000096968 ...
  v Downloading data for ENSG00000096968 ... [6.3s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [30ms]
  
  \ Downloading data for ENSG00000167207 ...
  v Downloading data for ENSG00000167207 ... [6.4s]
  
  \ Downloading data for ENSG00000096968 ...
  x Downloading data for ENSG00000096968 ... [10.2s]
  
  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... [16ms]
  
  \ Downloading data...
  v Downloading data... [866ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data for variant 14_87978408_G_A ...
  v Downloading data for variant 14_87978408_G_A ... [115ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [126ms]
  
  \ Downloading data for variant rs55808324 ...
  v Downloading data for variant rs55808324 ... [189ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [30ms]
  
  \ Downloading data...
  v Downloading data... [203ms]
  
  \ Connecting the database...
  v Connecting the database... [27ms]
  
  \ Downloading data...
  v Downloading data... [142ms]
  
  \ Connecting the database...
  v Connecting the database... [250ms]
  
  \ Downloading data...
  v Downloading data... [146ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [14ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [5.6s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [225ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [5.6s]
  
  \ Downloading data for ENSG00000163946 ...
  v Downloading data for ENSG00000163946 ... [6.2s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  x Connecting to the Open Targets Genetics GrpahQL API... [431ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [15ms]
  
  \ Downloading data...
  v Downloading data... [130ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [16ms]
  
  \ Downloading data for  GCST003044 , 14_88009660_C_T ...
  v Downloading data for  GCST003044 , 14_88009660_C_T ... [1s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [17ms]
  
  \ Downloading data...
  v Downloading data... [562ms]
  
  \ Connecting the database...
  v Connecting the database... [16ms]
  
  \ Downloading data...
  v Downloading data... [271ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [32ms]
  
  \ Downloading data...
  v Downloading data... [260ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [33ms]
  
  \ Downloading data...
  v Downloading data... [538ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [734ms]
  
  \ Downloading data...
  v Downloading data... [686ms]
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 79 ]
  
  ══ 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
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 79 ]
  Error: Test failures
  Execution halted