Returns TRUE if the 'STATcube' REST API of Statistics Austria is
reachable and returns valid (JSON) content. This also detects cases
where the server is technically reachable (HTTP status 200) but serves
an intermediate html page (e.g. during maintenance work). Note that an
HTTP status 401 (invalid/missing API key) still counts as reachable, as
the API itself responds with valid JSON. The result is cached within an
R session. It is mainly used internally to guard examples and network
functions against an unavailable server.
Usage
sc_server_reachable(server = c("ext", "red", "prod", "test"), timeout = 5)Value
a logical() of length one
