Learn R Programming

rerddapXtracto (version 1.2.3)

safe_info: 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/")

Value

If success, dataset information, otherwise message and end

Arguments

dataset_id

ERDDAP dataset_id

url

base ERDDAP URL

Examples

Run this code
dataInfo <- safe_info('etopo360')

Run the code above in your browser using DataLab