Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [9s/327s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("epigraphdb")
  Loading required package: epigraphdb
  
      EpiGraphDB v0.3 (API: https://api.epigraphdb.org)
    
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-meta.R:45:3): meta_rels_list_rel ──────────────────────────────
  `meta_rels_list_rel(meta_rel = meta_rel)` threw an error.
  Message: Unprocessable Entity (WebDAV; RFC 4918) (HTTP 422).
  Detail:
  $detail
  $detail[[1]]
  $detail[[1]]$loc
  $detail[[1]]$loc[[1]]
  [1] "path"
  
  $detail[[1]]$loc[[2]]
  [1] "meta_rel"
  
  
  $detail[[1]]$msg
  [1] "value is not a valid enumeration member; permitted: 'BIORXIV_OBJ', 'BIORXIV_PREDICATE', 'BIORXIV_SUB', 'BIORXIV_TO_LIT', 'CPIC', 'EFO_CHILD_OF', 'EXPRESSED_IN', 'GENE_TO_PROTEIN', 'GEN_COR', 'GWAS_EFO_EBI', 'GWAS_NLP', 'GWAS_NLP_EFO', 'GWAS_TO_LITERATURE', 'GWAS_TO_LITERATURE_TRIPLE', 'GWAS_TO_VARIANT', 'MEDRXIV_OBJ', 'MEDRXIV_PREDICATE', 'MEDRXIV_SUB', 'MEDRXIV_TO_LIT', 'METAMAP_LITE', 'MONDO_MAP_EFO', 'MONDO_MAP_UMLS', 'MR_EVE_MR', 'OBS_COR', 'OPENTARGETS_DRUG_TO_DISEASE', 'OPENTARGETS_DRUG_TO_TARGET', 'PATHWAY_CHILD_OF', 'PROTEIN_IN_PATHWAY', 'PRS', 'TERM_TO_GENE', 'SEMMEDDB_OBJ', 'SEMMEDDB_PREDICATE', 'SEMMEDDB_SUB', 'SEMMEDDB_TO_LIT', 'STRING_INTERACT_WITH', 'OPENGWAS_TOPHITS', 'VARIANT_TO_GENE', 'XQTL_MULTI_SNP_MR', 'XQTL_SINGLE_SNP_MR_GENE_GWAS', 'XQTL_SINGLE_SNP_MR_SNP_GENE', 'GENE_TO_DISEASE'"
  
  $detail[[1]]$type
  [1] "type_error.enum"
  
  $detail[[1]]$ctx
  $detail[[1]]$ctx$enum_values
  $detail[[1]]$ctx$enum_values[[1]]
  [1] "BIORXIV_OBJ"
  
  $detail[[1]]$ctx$enum_values[[2]]
  [1] "BIORXIV_PREDICATE"
  
  $detail[[1]]$ctx$enum_values[[3]]
  [1] "BIORXIV_SUB"
  
  $detail[[1]]$ctx$enum_values[[4]]
  [1] "BIORXIV_TO_LIT"
  
  $detail[[1]]$ctx$enum_values[[5]]
  [1] "CPIC"
  
  $detail[[1]]$ctx$enum_values[[6]]
  [1] "EFO_CHILD_OF"
  
  $detail[[1]]$ctx$enum_values[[7]]
  [1] "EXPRESSED_IN"
  
  $detail[[1]]$ctx$enum_values[[8]]
  [1] "GENE_TO_PROTEIN"
  
  $detail[[1]]$ctx$enum_values[[9]]
  [1] "GEN_COR"
  
  $detail[[1]]$ctx$enum_values[[10]]
  [1] "GWAS_EFO_EBI"
  
  $detail[[1]]$ctx$enum_values[[11]]
  [1] "GWAS_NLP"
  
  $detail[[1]]$ctx$enum_values[[12]]
  [1] "GWAS_NLP_EFO"
  
  $detail[[1]]$ctx$enum_values[[13]]
  [1] "GWAS_TO_LITERATURE"
  
  $detail[[1]]$ctx$enum_values[[14]]
  [1] "GWAS_TO_LITERATURE_TRIPLE"
  
  $detail[[1]]$ctx$enum_values[[15]]
  [1] "GWAS_TO_VARIANT"
  
  $detail[[1]]$ctx$enum_values[[16]]
  [1] "MEDRXIV_OBJ"
  
  $detail[[1]]$ctx$enum_values[[17]]
  [1] "MEDRXIV_PREDICATE"
  
  $detail[[1]]$ctx$enum_values[[18]]
  [1] "MEDRXIV_SUB"
  
  $detail[[1]]$ctx$enum_values[[19]]
  [1] "MEDRXIV_TO_LIT"
  
  $detail[[1]]$ctx$enum_values[[20]]
  [1] "METAMAP_LITE"
  
  $detail[[1]]$ctx$enum_values[[21]]
  [1] "MONDO_MAP_EFO"
  
  $detail[[1]]$ctx$enum_values[[22]]
  [1] "MONDO_MAP_UMLS"
  
  $detail[[1]]$ctx$enum_values[[23]]
  [1] "MR_EVE_MR"
  
  $detail[[1]]$ctx$enum_values[[24]]
  [1] "OBS_COR"
  
  $detail[[1]]$ctx$enum_values[[25]]
  [1] "OPENTARGETS_DRUG_TO_DISEASE"
  
  $detail[[1]]$ctx$enum_values[[26]]
  [1] "OPENTARGETS_DRUG_TO_TARGET"
  
  $detail[[1]]$ctx$enum_values[[27]]
  [1] "PATHWAY_CHILD_OF"
  
  $detail[[1]]$ctx$enum_values[[28]]
  [1] "PROTEIN_IN_PATHWAY"
  
  $detail[[1]]$ctx$enum_values[[29]]
  [1] "PRS"
  
  $detail[[1]]$ctx$enum_values[[30]]
  [1] "TERM_TO_GENE"
  
  $detail[[1]]$ctx$enum_values[[31]]
  [1] "SEMMEDDB_OBJ"
  
  $detail[[1]]$ctx$enum_values[[32]]
  [1] "SEMMEDDB_PREDICATE"
  
  $detail[[1]]$ctx$enum_values[[33]]
  [1] "SEMMEDDB_SUB"
  
  $detail[[1]]$ctx$enum_values[[34]]
  [1] "SEMMEDDB_TO_LIT"
  
  $detail[[1]]$ctx$enum_values[[35]]
  [1] "STRING_INTERACT_WITH"
  
  $detail[[1]]$ctx$enum_values[[36]]
  [1] "OPENGWAS_TOPHITS"
  
  $detail[[1]]$ctx$enum_values[[37]]
  [1] "VARIANT_TO_GENE"
  
  $detail[[1]]$ctx$enum_values[[38]]
  [1] "XQTL_MULTI_SNP_MR"
  
  $detail[[1]]$ctx$enum_values[[39]]
  [1] "XQTL_SINGLE_SNP_MR_GENE_GWAS"
  
  $detail[[1]]$ctx$enum_values[[40]]
  [1] "XQTL_SINGLE_SNP_MR_SNP_GENE"
  
  $detail[[1]]$ctx$enum_values[[41]]
  [1] "GENE_TO_DISEASE"
  
  
  
  
  do.call(method, args = list(route = route, params = params, retry_times = retry_times, retry_pause_min = retry_pause_min, call = call))
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-meta.R:45:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─epigraphdb::meta_rels_list_rel(meta_rel = meta_rel)
    7.   └─epigraphdb::query_epigraphdb(...)
    8.     └─epigraphdb:::api_request(...)
    9.       ├─base::do.call(...)
   10.       └─(function (route, params, retry_times, retry_pause_min, call = sys.call(-1)) ...
   11.         └─epigraphdb:::stop_for_status(response, call = sys.call(-1))
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 111 ]
  Error: Test failures
  Execution halted