List resources for a package on the portal.
Arguments
- package
A way to identify the package. Either a package ID (passed as a character vector directly), a single package resulting from
list_packages
orsearch_packages
, or the package's URL from the portal.
Value
A tibble of resources along with metadata, including name
,
id
, format
(the format of the resource file), and
last_modified
(the date the resource was last modified).
Examples
# \donttest{
list_package_resources("1db34737-ffad-489d-a590-9171d500d453")
#> # A tibble: 13 × 4
#> name id format last_modified
#> <chr> <chr> <chr> <date>
#> 1 Transit shelter data b9214fd7-60d1-45f3-… GeoJS… 2022-11-28
#> 2 Transit shelter data - 4326.gpkg 067a6003-f5d6-41d2-… gpkg 2025-03-27
#> 3 Transit shelter data - 2945.gpkg b8f29291-0027-494c-… GPKG 2022-04-22
#> 4 Transit shelter data - 4326.csv ecf41899-aed0-405e-… CSV 2025-03-27
#> 5 Transit shelter data - 2945.csv 5a1bc1c9-7784-4392-… CSV 2022-04-22
#> 6 Transit shelter data - 4326.geojson e4bdd549-dc39-4a3e-… GeoJS… 2025-03-27
#> 7 Transit shelter data - 2945.geojson ccbb8cbc-811a-4276-… GeoJS… 2022-04-22
#> 8 Transit shelter data - 4326.zip 2d0b0f40-b86a-42b2-… SHP 2025-03-27
#> 9 Transit shelter data - 2945.zip f6778e95-0cf4-494d-… SHP 2022-04-22
#> 10 Transit shelter data - 2952.gpkg 15261fdf-8cc1-4065-… gpkg 2025-03-27
#> 11 Transit shelter data - 2952.geojson fa0d875c-53c2-4715-… GeoJS… 2025-01-01
#> 12 Transit shelter data - 2952.csv fbdf81d6-8f40-4781-… CSV 2025-03-27
#> 13 Transit shelter data - 2952.zip 757fb910-dbf7-4148-… SHP 2025-03-27
list_package_resources("https://open.toronto.ca/dataset/ttc-subway-delay-data")
#> # A tibble: 15 × 4
#> name id format last_modified
#> <chr> <chr> <chr> <date>
#> 1 ttc-subway-delay-codes 3900e649-f31e-4b7… XLSX 2022-04-06
#> 2 ttc-subway-delay-data-readme ca43ac3d-3940-431… XLSX 2022-04-06
#> 3 ttc-subway-delay-jan-2014-april-2017 8ca4a6ed-5e7e-4b9… XLSX 2022-04-06
#> 4 ttc-subway-delay-may-december-2017 e2ee9f63-3130-4d6… XLSX 2022-04-06
#> 5 ttc-subway-delay-data-2018 32bd0973-e83d-4df… XLSX 2022-04-06
#> 6 ttc-subway-delay-data-2019 1df6aace-fa16-40e… XLSX 2022-04-06
#> 7 ttc-subway-delay-data-2020 1ba66ead-cddf-453… XLSX 2022-04-06
#> 8 ttc-subway-delay-data-2021 c6e4f5eb-6ed7-4db… XLSX 2022-04-06
#> 9 ttc-subway-delay-data-2022 441143ca-8194-44c… XLSX 2023-01-23
#> 10 ttc-subway-delay-data-2023 2fbec48b-33d9-489… XLSX 2024-01-18
#> 11 ttc-subway-delay-data-2024 2ee1a65c-da06-4ad… XLSX 2025-01-21
#> 12 TTC Subway Delay Data since 2025 6088e14f-e46e-4f5… XLSX NA
#> 13 TTC Subway Delay Data since 2025.csv 0b6e5c52-e993-46d… CSV 2025-03-11
#> 14 TTC Subway Delay Data since 2025.xml 021e6a9d-d31e-436… XML 2025-03-11
#> 15 TTC Subway Delay Data since 2025.json fed58a09-14bc-403… JSON 2025-03-11
# }