safe_info: Wrap rerddap::info() so that it will fail gracefully...

View source: R/utils.R

safe_infoR Documentation

Wrap rerddap::info() so that it will fail gracefully safe_info uses tryCatch() to deal with unavailable response

Description

Wrap rerddap::info() so that it will fail gracefully safe_info uses tryCatch() to deal with unavailable response

Usage

safe_info(dataset_id, url = "https://upwell.pfeg.noaa.gov/erddap/")

Arguments

dataset_id

ERDDAP dataset_id

url

base ERDDAP URL

Value

If success, dataset information, otherwise message and end

Examples

dataInfo <- safe_info('etopo360')


rerddapXtracto documentation built on April 3, 2025, 11:04 p.m.