Learn R Programming

icesVocab (version 1.3.1)

vocab_get: 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 )

Value

content or an http response.

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.

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

Run this code
if (FALSE) {
vocab_get(vocab_api("StockList", year = 2022))
}

Run the code above in your browser using DataLab