cp_ds | R Documentation |
Datasets API route catch all method
cp_ds(route, ..., .list = list())
route |
(character) an API route. the |
... |
named parameters, passed on to |
.list |
a named list. instead of passing in named parameters
through |
There are A LOT of datasets API routes. Instead of making
an R function for each route, we have R functions for some of the
"more important" routes, then cp_ds()
will allow you to make
requests to the remainder of the datasets API routes.
output varies depending on the route requested, but output will always be a named list. when no results found, an error message will be returned
Some dataset routes do not return JSON so we don't support those.
Thus far, the only route we don't support is /dataset/\\{key\\}/logo
## Not run: cp_ds(route = "{key}/tree", key = "1000") cp_ds(route = "{key}/tree", key = "1014") cp_ds(route = "{key}/name/{id}", key = 1005, id = 100003) # pass a named list to the .list parameter args <- list(key = 1005, id = 100003) cp_ds("{key}/name/{id}", .list = args) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.