Skip to contents

Phase 3EEE2. Generic loader hitting CKAN's datastore_search endpoint for an arbitrary Toronto package resource.

Usage

morie_datasets_toronto_open_ckan_resource(resource_id, limit = 100L)

Arguments

resource_id

CKAN resource UUID (from package_show).

limit

Page size (max 32000 per CKAN; sane default 100).

Value

A data.frame of records.

Examples

# \donttest{
cat_df <- morie_datasets_toronto_opendata_bulk_layers()
df <- try(morie_datasets_toronto_open_ckan_resource(cat_df$resource_id[1],
                                                    limit = 5L))
#> Error : Expecting a single string value: [type=character; extent=0].
if (!inherits(df, "try-error")) head(df)
# }