Running ‘test-all.R’ [0m/60m]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > library(rif)
  > 
  > test_check("rif")
  1. Error: federation_data (@test-federation_data.R#4) --------------------------
  Internal Server Error (HTTP 500)
  1: federation_data(id = "nlx_152871-2") at testthat/test-federation_data.R:4
  2: nif_parse(nif_GET(paste0("federation/data/", id), args, ...), FALSE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET(paste0("federation/data/", id), args, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  2. Error: federation_facet (@test-federation_facet.R#4) ------------------------
  Service Unavailable (HTTP 503)
  1: federation_facet(id = "nlx_152871-2") at testthat/test-federation_facet.R:4
  2: nif_parse(nif_GET(paste0("federation/facets/", id), args, ...), FALSE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET(paste0("federation/facets/", id), args, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  3. Error: federation_search (@test-federation_search.R#4) ----------------------
  Internal Server Error (HTTP 500)
  1: federation_search("cellular") at testthat/test-federation_search.R:4
  2: nif_parse(nif_GET("federation/search.json", args, ...), TRUE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET("federation/search.json", args, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  4. Error: lexical_chunks (@test-lexical_chunks.R#4) ----------------------------
  Service Unavailable (HTTP 503)
  1: lexical_chunks("I am hungry") at testthat/test-lexical_chunks.R:4
  2: start_end(nif_parse(nif_GET("lexical/chunks", list(text = text), ...), TRUE))
  3: nif_parse(nif_GET("lexical/chunks", list(text = text), ...), TRUE)
  4: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  5: nif_GET("lexical/chunks", list(text = text), ...)
  6: res$raise_for_status()
  7: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  5. Error: lexical_entities (@test-lexical_entities.R#4) ------------------------
  Internal Server Error (HTTP 500)
  1: lexical_entities("I am hungry") at testthat/test-lexical_entities.R:4
  2: start_end(nif_parse(nif_GET("lexical/entities", list(text = text), ...), TRUE))
  3: nif_parse(nif_GET("lexical/entities", list(text = text), ...), TRUE)
  4: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  5: nif_GET("lexical/entities", list(text = text), ...)
  6: res$raise_for_status()
  7: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  6. Error: lexical_pmchunks (@test-lexical_pmchunks.R#4) ------------------------
  Service Unavailable (HTTP 503)
  1: lexical_pmchunks(pmid = 1) at testthat/test-lexical_pmchunks.R:4
  2: start_end(nif_parse(nif_GET("lexical/pmChunks", args, ...), TRUE))
  3: nif_parse(nif_GET("lexical/pmChunks", args, ...), TRUE)
  4: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  5: nif_GET("lexical/pmChunks", args, ...)
  6: res$raise_for_status()
  7: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  7. Error: lexical_pmentities (@test-lexical_pmentities.R#4) --------------------
  Service Unavailable (HTTP 503)
  1: lexical_pmentities(pmid = 1) at testthat/test-lexical_pmentities.R:4
  2: start_end(nif_parse(nif_GET("lexical/pmEntities", args, ...), TRUE))
  3: nif_parse(nif_GET("lexical/pmEntities", args, ...), TRUE)
  4: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  5: nif_GET("lexical/pmEntities", args, ...)
  6: res$raise_for_status()
  7: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  8. Error: lexical_pos (@test-lexical_pos.R#4) ----------------------------------
  Service Unavailable (HTTP 503)
  1: lexical_pos("I am hungry") at testthat/test-lexical_pos.R:4
  2: start_end(nif_parse(nif_GET("lexical/pos", list(text = text), ...), TRUE))
  3: nif_parse(nif_GET("lexical/pos", list(text = text), ...), TRUE)
  4: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  5: nif_GET("lexical/pos", list(text = text), ...)
  6: res$raise_for_status()
  7: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  9. Error: lexical_sentences (@test-lexical_sentences.R#4) ----------------------
  Service Unavailable (HTTP 503)
  1: lexical_sentences("cellular") at testthat/test-lexical_sentences.R:4
  2: nif_parse(nif_GET("lexical/sentences", list(text = text), ...), TRUE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET("lexical/sentences", list(text = text), ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  10. Error: literature_mlpmid (@test-literature_mlpmid.R#4) ---------------------
  Service Unavailable (HTTP 503)
  1: literature_mlpmid(pmid = 1) at testthat/test-literature_mlpmid.R:4
  2: tibble::as_tibble(nif_parse(nif_GET("literature/moreLikePmid", args, ...), TRUE))
  3: nif_parse(nif_GET("literature/moreLikePmid", args, ...), TRUE)
  4: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  5: nif_GET("literature/moreLikePmid", args, ...)
  6: res$raise_for_status()
  7: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  11. Error: literature_mltext (@test-literature_mltext.R#4) ---------------------
  Internal Server Error (HTTP 500)
  1: literature_mltext(text = "cellular") at testthat/test-literature_mltext.R:4
  2: tibble::as_tibble(nif_parse(nif_GET("literature/moreLikeText", args, ...), TRUE))
  3: nif_parse(nif_GET("literature/moreLikeText", args, ...), TRUE)
  4: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  5: nif_GET("literature/moreLikeText", args, ...)
  6: res$raise_for_status()
  7: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  12. Error: literature_pmid (@test-literature_pmid.R#4) -------------------------
  Service Unavailable (HTTP 503)
  1: literature_pmid(pmid = 1) at testthat/test-literature_pmid.R:4
  2: nif_parse(nif_GET("literature/pmid", args, ...), FALSE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET("literature/pmid", args, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  13. Error: literature_retractions (@test-literature_retractions.R#4) -----------
  Service Unavailable (HTTP 503)
  1: literature_retractions() at testthat/test-literature_retractions.R:4
  2: nif_parse(nif_GET("literature/retractions", NULL, ...), TRUE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET("literature/retractions", NULL, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  14. Error: literature_search (@test-literature_search.R#4) ---------------------
  Service Unavailable (HTTP 503)
  1: literature_search(query = "cellular") at testthat/test-literature_search.R:4
  2: nif_parse(nif_GET("literature/search", args, ...), TRUE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET("literature/search", args, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  15. Error: rif_query (@test-rif_query.R#4) -------------------------------------
  Service Unavailable (HTTP 503)
  1: rif_query(query = "cellular") at testthat/test-rif_query.R:4
  2: nif_parse(nif_GET("query", args, ...), FALSE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET("query", args, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  16. Error: rif_query_categories (@test-rif_query_categories.R#4) ---------------
  Service Unavailable (HTTP 503)
  1: rif_query_categories() at testthat/test-rif_query_categories.R:4
  2: nif_parse(nif_GET("query/categories", NULL, ...), TRUE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET("query/categories", NULL, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  17. Error: rif_summary (@test-rif_summary.R#4) ---------------------------------
  Internal Server Error (HTTP 500)
  1: rif_summary("cellular") at testthat/test-rif_summary.R:4
  2: nif_parse(nif_GET("summary.json", args, ...), TRUE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET("summary.json", args, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  18. Error: vocabulary (@test-vocabulary.R#4) -----------------------------------
  Service Unavailable (HTTP 503)
  1: vocabulary(prefix = "cell") at testthat/test-vocabulary.R:4
  2: tibble::as_tibble(nif_parse(nif_GET(route, args, ...), TRUE))
  3: nif_parse(nif_GET(route, args, ...), TRUE)
  4: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  5: nif_GET(route, args, ...)
  6: res$raise_for_status()
  7: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  19. Error: vocabulary_categories (@test-vocabulary_categories.R#4) -------------
  Service Unavailable (HTTP 503)
  1: vocabulary_categories() at testthat/test-vocabulary_categories.R:4
  2: nif_parse(nif_GET("vocabulary/categories", args, ...), TRUE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET("vocabulary/categories", args, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  20. Error: vocabulary_providers (@test-vocabulary_providers.R#4) ---------------
  Service Unavailable (HTTP 503)
  1: vocabulary_providers() at testthat/test-vocabulary_providers.R:4
  2: nif_parse(nif_GET("vocabulary/providers", args, ...), TRUE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET("vocabulary/providers", args, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  21. Error: vocabulary_search (@test-vocabulary_search.R#4) ---------------------
  Service Unavailable (HTTP 503)
  1: vocabulary_search("cell") at testthat/test-vocabulary_search.R:4
  2: nif_parse(nif_GET("vocabulary/search", args, ...), TRUE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET("vocabulary/search", args, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  22. Error: vocabulary_suggest (@test-vocabulary_suggest.R#4) -------------------
  Internal Server Error (HTTP 500)
  1: vocabulary_suggest("cell") at testthat/test-vocabulary_suggest.R:4
  2: nif_parse(nif_GET("vocabulary/suggest", args, ...), TRUE)
  3: jsonlite::fromJSON(x, simplify, flatten = TRUE)
  4: nif_GET("vocabulary/suggest", args, ...)
  5: res$raise_for_status()
  6: stop(sprintf("%s (HTTP %s)", x$message, x$status_code), call. = FALSE)
  
  testthat results ================================================================
  OK: 0 SKIPPED: 0 FAILED: 22
  1. Error: federation_data (@test-federation_data.R#4) 
  2. Error: federation_facet (@test-federation_facet.R#4) 
  3. Error: federation_search (@test-federation_search.R#4) 
  4. Error: lexical_chunks (@test-lexical_chunks.R#4) 
  5. Error: lexical_entities (@test-lexical_entities.R#4) 
  6. Error: lexical_pmchunks (@test-lexical_pmchunks.R#4) 
  7. Error: lexical_pmentities (@test-lexical_pmentities.R#4) 
  8. Error: lexical_pos (@test-lexical_pos.R#4) 
  9. Error: lexical_sentences (@test-lexical_sentences.R#4) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted