| az_copy_to | R Documentation |
Writes a lazy table, data frame, or SQL query to an abfs:// or
abfss:// URL using DuckDB's COPY ... TO command.
az_copy_to(
conn,
x,
url,
format = c("parquet", "csv", "json"),
partition_by = NULL,
overwrite = FALSE
)
conn |
A DuckDB connection. |
x |
A lazy |
url |
Character scalar. Azure Blob URL to write to. |
format |
Output format. One of |
partition_by |
Optional character vector of columns to partition by. |
overwrite |
Logical. When |
Invisibly returns url.
## Not run:
# Requires a live Azure account, credentials, and network access.
conn <- az_conn()
az_copy_to(
conn,
"SELECT * FROM events WHERE event_date >= DATE '2026-01-01'",
"abfss://container@account/exports/events",
format = "parquet"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.