ropensci / universe

Tools for Working with R-universe
https://docs.ropensci.org/universe
Apache License 2.0
6 stars 1 forks source link

Search datasets #8

Open llrs opened 3 weeks ago

llrs commented 3 weeks ago

There is global_search(query = '"weather data"', limit = 1) that relies on exact string match. I would like to find all the data of certain type (rectangular/csv).

I am not sure if this is possible with the API, as the documentation seems to indicate it is only possible to search using some keywords.

Ideally I'd like something like global_search(type = "csv", dataset = TRUE) to return a list of dataset that are available in csv format (if this could be searched by package or universe that would be great too).

My use case is I'm making a toy shiny app where I want to show that it works with random data and I wanted to pull it from r-universe. I could use the global_search function but that could provide functions that match "retrieve weather data" (which could require registration, API keys or configuration) instead of the actual dataset already available on the package(s).