Skip to contents

Check if a PX-Web API is reachable

Usage

px_available(api)

Arguments

api

A <px_api> object.

Value

Logical: TRUE if the API responds, FALSE otherwise.

Examples

# \donttest{
scb <- px_api("scb")
if (px_available(scb)) {
  px_available(scb)
}# }
#> [1] TRUE