Skip to content

Commit

Permalink
docs: add valid example of global_search() in get started vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
salvafern committed Jun 23, 2023
1 parent bff25e2 commit 8b6db96
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions vignettes/rerddap.Rmd
Expand Up @@ -51,7 +51,7 @@ library("rerddap")

## Search

First, you likely want to search for data, specify either `griddadp` or `tabledap`
First, you likely want to search for data, specify either `griddap` or `tabledap`


```r
Expand Down Expand Up @@ -95,8 +95,24 @@ There is now a convenience function to search over a list of ERDDAP servers, de


```r
global_search(query, server_list, which_service)
#> Error in check_arg(query, "character"): object 'query' not found
server_list <- c(
emodnet_physics = 'https://erddap.emodnet-physics.eu/erddap/',
irish_marine_institute = 'https://erddap.marine.ie/erddap/'
)

global_search(query = 'size', server_list, 'griddap')
#> # A tibble: 9 × 3
#> title dataset_id url
#> <chr> <chr> <chr>
#> 1 EMODnet Physics - Total Suspended Matter … TSM_BALTI… http…
#> 2 EMODnet Physics - Total Suspended Matter … TSM_MBSEA http…
#> 3 EMODnet Physics - Total Suspended Matter … TSM_MBSEA… http…
#> 4 EMODnet Physics - TEMPERATURE YEARLY RECO… ERD_EP_TE… http…
#> 5 EMODPACE - Monthly sea level derived from… EMODPACE_… http…
#> 6 EMODnet Physics - Total Suspended Matter … TSM_NORTH… http…
#> 7 EMODPACE - Absolute sea level trend (1993… EMODPACE_… http…
#> 8 EMODPACE - Sea Level monthly mean, EurAsi… EMODPACE_… http…
#> 9 COMPASS-NEATL Hindcast 2016-2020 compass_n… http…
```

## Information
Expand Down

0 comments on commit 8b6db96

Please sign in to comment.