browse: Browse a dataset webpage.

View source: R/browse.R

browseR Documentation

Browse a dataset webpage.

Description

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

Usage

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

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)

Value

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

Author(s)

Ben Tupper btupper@bigelow.org

Examples

## Not run: 
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)
}
## End(Not run)

rerddap documentation built on July 4, 2024, 9:07 a.m.