From ae0439f24020c654d1ec2bb97659a42b1315676b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Jun 2026 15:00:56 +0000 Subject: [PATCH 1/2] Initial plan From 37840fc66e1593b9f6111325232a1b97432f5259 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Jun 2026 15:04:16 +0000 Subject: [PATCH 2/2] docs: add read_azure_table OData examples --- R/read_azure_table.R | 24 ++++++++++++++++++++++++ man/read_azure_table.Rd | 25 +++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/R/read_azure_table.R b/R/read_azure_table.R index 7a4d694..0aee84c 100644 --- a/R/read_azure_table.R +++ b/R/read_azure_table.R @@ -7,6 +7,30 @@ #' @param select An OData select string to specify which properties to return. #' @param top An integer specifying the maximum number of records to return. #' @returns A tibble +#' @examples +#' \dontrun{ +#' # Read all rows from a table +#' read_azure_table( +#' "my_table", +#' table_endpoint = "https://myaccount.table.core.windows.net/" +#' ) +#' +#' # Filter rows using an OData filter string +#' read_azure_table( +#' "my_table", +#' table_endpoint = "https://myaccount.table.core.windows.net/", +#' filter = "PartitionKey eq 'my-partition'" +#' ) +#' +#' # Filter, select specific properties, and limit the number of rows returned +#' read_azure_table( +#' "my_table", +#' table_endpoint = "https://myaccount.table.core.windows.net/", +#' filter = "Status eq 'Active' and Score ge 10", +#' select = "PartitionKey,RowKey,Status,Score", +#' top = 100 +#' ) +#' } #' @export read_azure_table <- function( table_name, diff --git a/man/read_azure_table.Rd b/man/read_azure_table.Rd index 5fae25d..bc8245b 100644 --- a/man/read_azure_table.Rd +++ b/man/read_azure_table.Rd @@ -33,3 +33,28 @@ A tibble \description{ Read in data from an Azure table } +\examples{ +\dontrun{ +# Read all rows from a table +read_azure_table( + "my_table", + table_endpoint = "https://myaccount.table.core.windows.net/" +) + +# Filter rows using an OData filter string +read_azure_table( + "my_table", + table_endpoint = "https://myaccount.table.core.windows.net/", + filter = "PartitionKey eq 'my-partition'" +) + +# Filter, select specific properties, and limit the number of rows returned +read_azure_table( + "my_table", + table_endpoint = "https://myaccount.table.core.windows.net/", + filter = "Status eq 'Active' and Score ge 10", + select = "PartitionKey,RowKey,Status,Score", + top = 100 +) +} +}