neuromorpho_is_api_healthy | R Documentation |
Test that the base neuromorpho.org API url, http://neuromorpho.org/api, can be reached. The API provides access to the neuron information, morphometry data and literature via three main endpoints using conventional HTTP requests. These endpoints are used by function in this package to read neurons from the repository, get meta information associated with those neurons, and perform limited searches of the literature describing neuronal morphologies.
neuromorpho_is_api_healthy(neuromorpho_url = "http://neuromorpho.org", ...)
neuromorpho_url |
the base URL for querying the neuromorpho database, defaults to http://neuromorpho.org |
... |
methods passed to |
Checks to see whether status the neuromorpho.org API is 'UP' at http://neuromorpho.org/api/health
TRUE if the API can be reached, FALSE with a warning, if not
neuromorpho_search
,
neuromorpho_read_neurons
,
neuromorpho_neurons_info
## Not run:
## Check if the neuromorpho API is healthy
if(neuromorpho_is_api_healthy()){
message("We can talk to neuromorpho.org!")
}else{
message("Oh dear")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.