Learn R Programming

icesTAF (version 4.3.0)

taf_get: Get a url

Description

Get a url, optionally using an ICES authentication token

Usage

taf_get(url, retry = TRUE, quiet = getOption("icesTAF.messages") %||%
  FALSE, verbose = FALSE, content = TRUE,
  use_token = getOption("icesTAF.use_token") %||% FALSE)

taf_get_cached(url, retry = TRUE, quiet = getOption("icesTAF.messages") %||% FALSE, verbose = FALSE, content = TRUE, use_token = getOption("icesTAF.use_token") %||% FALSE)

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.

use_token

should an authentication token be sent with the request? default is the value of the option icesSAG.use_token.

Functions

  • taf_get_cached(): cached version of taf_get

See Also

taf_api builds a SAG web service url.

icesTAF-package gives an overview of the package.

Examples

Run this code
if (FALSE) {
taf_get(taf_api("FLStocks"))
}

Run the code above in your browser using DataLab