vocab_get {icesVocab} | R Documentation |
Get a url
Description
Get a url, optionally using an ICES authentication token
Usage
vocab_get(
url,
retry = TRUE,
quiet = !getOption("icesVocab.messages"),
verbose = FALSE,
content = TRUE
)
vocab_get_cached(
url,
retry = TRUE,
quiet = !getOption("icesVocab.messages"),
verbose = FALSE,
content = TRUE
)
Arguments
url |
the url to get. |
retry |
should the get request be retried if first attempt fails? default TRUE. |
quiet |
should all messages be suppressed, default FALSE. |
verbose |
should verbose output form the http request be returned? default FALSE. |
content |
should content be returned, or the full http response? default TRUE, i.e. content is returned by default. |
Value
content or an http response.
Functions
-
vocab_get_cached()
: cached version of vocab_get
See Also
vocab_api
builds a SAG web service url.
icesVocab-package
gives an overview of the package.
Examples
## Not run:
vocab_get(vocab_api("StockList", year = 2022))
## End(Not run)
[Package icesVocab version 1.3.2 Index]