Attempts to connect to the Monarch Initiative API and use the specified functionality. Returns FALSE if the API is not available the result is not as expected.

monarch_engine_check(warn = TRUE, service = "graph")

Arguments

warn

A logical indicating whether to print a warning message if with failure information if the database is not available or not properly formatted. Default is TRUE.

service

The service to check: "search", "semsim", "graph", or a vector of these. Default is "graph".

Value

TRUE if the available features are online, FALSE otherwise.

Examples

print(monarch_engine_check())
#> Trying to connect to https://neo4j.monarchinitiative.org
#> Connected to https://neo4j.monarchinitiative.org
#> [1] TRUE