Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: azkit
Title: Azure storage authentication toolkit
Version: 0.2.1
Version: 0.2.2
Authors@R:
c(person(
"Fran", "Barton",
Expand Down
12 changes: 10 additions & 2 deletions R/read_azure_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@
#' the default, the function will look instead for a value stored in the
#' environment variable "AZ_TABLE_EP"
#' @param ... parameters to be passed through to [get_auth_token]
#' @inheritParams get_container
#' @returns A tibble
#' @export
read_azure_table <- function(table_name = NULL, table_endpoint = NULL, ...) {
read_azure_table <- function(
table_name = NULL,
table_endpoint = NULL,
token = NULL,
...
) {
table_name <- table_name %||% check_envvar("AZ_TABLE_NAME")
table_ep <- table_endpoint %||% check_envvar("AZ_TABLE_EP")
access_token <- get_auth_token(...) |>
token <- token %||% get_auth_token(...)
access_token <- token |>
purrr::pluck("credentials", "access_token")
headers <- list("2025-11-05", "application/json;odata=nometadata") |>
purrr::set_names(c("x-ms-version", "Accept"))
Expand All @@ -30,3 +37,4 @@ read_azure_table <- function(table_name = NULL, table_endpoint = NULL, ...) {
purrr::map(tibble::as_tibble) |>
purrr::list_rbind()
}

5 changes: 4 additions & 1 deletion man/read_azure_table.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading