| pd_url | R Documentation |
The address of one version's file, for reading with another tool such as ‘read.csv()', ’arrow' or 'DuckDB', or for a 'targets' pipeline with 'format = "url"', which reruns when the address changes.
pd_url(slug, format = "parquet", version = NULL, table = NULL)
slug |
The dataset's slug, as in its page URL 'https://publicdata.au/d/<slug>/'. |
format |
One of '"parquet"', '"csv"', '"csv.gz"', '"json"', '"ndjson"', '"sqlite"', '"duckdb"', '"xlsx"', '"arrow"', '"geojson"', '"gpkg"' or '"geo.parquet"'. The last three are served only for datasets with a location or a shape. |
version |
A version date from [pd_versions()]. The newest when 'NULL'. |
table |
For a database, one of its tables, which is served as Parquet. See [pd_tables()]. |
The URL as text. With a 'version' it names a file that never changes; without one it names the newest version's file, which redirects to a dated URL and moves when the publisher releases again.
Other files:
cache,
pd_download(),
pd_read()
pd_url("au-road-deaths", "csv", "2026-08-07")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.