Skip to contents

Searches for datasets and resources satisfying a given criteria.

Usage

dataset_search(q = NULL, rows = NULL, start = NULL)

resource_search(query = NULL, rows = NULL, start = NULL)

Arguments

q, query

The search query.

rows

The maximum number of matching rows (datasets) to return. (optional, default: 10, upper limit: 1000)

start

The offset in the complete result for where the set of returned datasets should begin.

Value

A tibble with the search results.

tibble with list of related resource.

Examples

#-----
# Test search in prod
# Sys.unsetenv("USE_UAT")
# searching <- "cbi"
# p <- dataset_search(q = searching, rows = 30)
# p



#-----
# Test create in UAT
Sys.setenv(USE_UAT=1)
# p2 <- dataset_search(q = "testedouard2")