Learn R Programming

rfishbase (version 2.1.2)

heartbeat: heartbeat

Description

Check that the FishBase API server is responding

Usage

heartbeat(server = getOption("FISHBASE_API", FISHBASE_API))

Arguments

server

base URL to the FishBase API (by default). For SeaLifeBase, use https://fishbase.ropensci.org/sealifebase

Value

An httr 'response' object.

Examples

Run this code
# NOT RUN {
## Show server response times
resp <- heartbeat()
resp$times

## Show API endpoints:
library("httr")
httr::content(resp)

# }

Run the code above in your browser using DataLab