Learn R Programming

rerddap (version 1.1.0)

browse: Browse a dataset webpage.

Description

Note that it is an error to call this when base::interactive() returns FALSE

Usage

browse(x, url = eurl(), ...)

Value

if in interactive mode, opens a URL in your default browser; if not, then prints the URL in the console

Arguments

x

datasetid or an object associated with a datasetid such info(), griddap() or tabledap()

url

A URL for an ERDDAP server. Default: https://upwell.pfeg.noaa.gov/erddap/ - See eurl() for more information

...

Further args passed on to utils::browseURL (must be a named parameter)

Author

Ben Tupper btupper@bigelow.org

Examples

Run this code
if (FALSE) {
if (interactive()) {
# browse by dataset_id
browse('erdATastnhday')

# browse info class
my_info <- info('erdATastnhday')
browse(my_info)

# browse tabledap class
my_tabledap <- tabledap('erdCalCOFIlrvsiz', fields=c('latitude','longitude','larvae_size',
   'itis_tsn'), 'time>=2011-10-25', 'time<=2011-10-31')
browse(my_tabledap)
}}

Run the code above in your browser using DataLab