Creates a <px_api> connection object used by all other pixieweb functions.
You can pass a known alias (e.g. "scb", "ssb") or a full base URL.
Examples
# \donttest{
if (px_available(px_api("scb"))) {
scb <- px_api("scb", lang = "en")
ssb <- px_api("ssb", lang = "no")
custom <- px_api("https://my.statbank.example/api/v2/", lang = "en")
}# }
#> Warning: Could not connect to PX-Web API: Failed to perform HTTP request.
#> Caused by error in `curl::curl_fetch_memory()`:
#> ! Couldn't resolve host name [my.statbank.example]:
#> Could not resolve host: my.statbank.example