Running ‘testthat.R’ [9s/49s]
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... [64ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [798ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [10ms]
  
  \ Downloading data for ENSG00000163946 ...
  v Downloading data for ENSG00000163946 ... [597ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [294ms]
  
  \ Downloading data for ENSG00000143001 ...
  v Downloading data for ENSG00000143001 ... [351ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [293ms]
  
  \ Downloading data for ENSG00000141510 ...
  v Downloading data for ENSG00000141510 ... [604ms]
  
  \ Downloading data for ENSG00000163946 ...
  v Downloading data for ENSG00000163946 ... [399ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [402ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [103ms]
  
  \ Downloading data for ENSG00000169174 ...
  | Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [361ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [10ms]
  
  \ Downloading data...
  v Downloading data... [163ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [114ms]
  
  \ Downloading data...
  v Downloading data... [126ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  x Connecting to the Open Targets Genetics GrpahQL API... [139ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [17ms]
  
  \ Downloading data for 1_154453788_C_T ...
  v Downloading data for 1_154453788_C_T ... [529ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [130ms]
  
  \ Downloading data for rs55808324 ...
  v Downloading data for rs55808324 ... [537ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [11ms]
  
  \ Downloading data...
  v Downloading data... [138ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [23ms]
  
  \ Downloading data...
  x Downloading data... [140ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [27ms]
  
  \ Downloading data...
  v Downloading data... [184ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [11ms]
  
  \ Downloading the data...
  v Downloading the data... [78ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [11ms]
  
  \ Downloading the data...
  v Downloading the data... [125ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [11ms]
  
  \ Downloading data...
  v Downloading data... [128ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [12ms]
  
  \ Downloading data...
  v Downloading data... [952ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [11ms]
  
  \ Downloading data...
  v Downloading data... [320ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [21ms]
  
  \ Downloading data...
  v Downloading data... [295ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [16ms]
  
  \ Downloading data for variant 1_55063514_G_A ...
  v Downloading data for variant 1_55063514_G_A ... [152ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [175ms]
  
  \ Downloading data for variant rs72698179 ...
  v Downloading data for variant rs72698179 ... [170ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [35ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [404ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [11ms]
  
  \ Downloading data for ENSG00000167207 ...
  v Downloading data for ENSG00000167207 ... [320ms]
  
  \ Downloading data for ENSG00000096968 ...
  v Downloading data for ENSG00000096968 ... [417ms]
  
  \ Downloading data for ENSG00000138821 ...
  v Downloading data for ENSG00000138821 ... [357ms]
  
  \ Downloading data for ENSG00000125255 ...
  v Downloading data for ENSG00000125255 ... [326ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [111ms]
  
  \ Downloading data for ENSG00000141510 ...
  | Downloading data for ENSG00000141510 ...
  v Downloading data for ENSG00000141510 ... [679ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [310ms]
  
  \ Downloading data for ENSG00000169174 ...
  v Downloading data for ENSG00000169174 ... [315ms]
  
  \ Downloading data for ENSG00000163946 ...
  v Downloading data for ENSG00000163946 ... [312ms]
  
  \ Downloading data for ENSG00000141510 ...
  v Downloading data for ENSG00000141510 ... [670ms]
  
  Selecting by Trait_reported_trimmed
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [10ms]
  
  \ Downloading data for ENSG00000167207 ...
  x Downloading data for ENSG00000167207 ... [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.7s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [11ms]
  
  \ Downloading data for variant 14_87978408_G_A ...
  v Downloading data for variant 14_87978408_G_A ... [169ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [266ms]
  
  \ Downloading data for variant rs55808324 ...
  v Downloading data for variant rs55808324 ... [300ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [11ms]
  
  \ Downloading data...
  v Downloading data... [772ms]
  
  \ Connecting the database...
  v Connecting the database... [11ms]
  
  \ Downloading data...
  v Downloading data... [122ms]
  
  \ Connecting the database...
  v Connecting the database... [233ms]
  
  \ Downloading data...
  v Downloading data... [152ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [11ms]
  
  \ Downloading data for ENSG00000169174 ...
  x Downloading data for ENSG00000169174 ... [10.1s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [27ms]
  
  \ Downloading data...
  v Downloading data... [116ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [39ms]
  
  \ Downloading data for  GCST003044 , 14_88009660_C_T ...
  v Downloading data for  GCST003044 , 14_88009660_C_T ... [1.6s]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [22ms]
  
  \ Downloading data...
  v Downloading data... [681ms]
  
  \ Connecting the database...
  v Connecting the database... [11ms]
  
  \ Downloading data...
  v Downloading data... [457ms]
  
  \ Connecting to the Open Targets Genetics GrpahQL API...
  v Connecting to the Open Targets Genetics GrpahQL API... [28ms]
  
  \ Downloading data...
  v Downloading data... [154ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [27ms]
  
  \ Downloading data...
  v Downloading data... [501ms]
  
  \ Connecting to the Open Targets Genetics GraphQL API...
  v Connecting to the Open Targets Genetics GraphQL API... [212ms]
  
  \ Downloading data...
  v Downloading data... [374ms]
  
  [ 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:2:3'): test studiesAndLeadVariantsForGeneByL2G works ──
  Error: Bad Gateway (HTTP 502)
  Backtrace:
      ▆
   1. └─otargen::studiesAndLeadVariantsForGeneByL2G(gene = "ENSG00000169174") at test-studiesAndLeadVariantsForGeneByL2G.R:2: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