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: 2 additions & 0 deletions .Renviron.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
AZ_STORAGE_EP=[your azure blob storage endpoint url]
AZ_TABLE_EP=[your azure table storage endpoint url]
4 changes: 2 additions & 2 deletions R/get_auth_token.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#' to help provide an appropriate string or vector.
#' If setting version to 2, ensure that the `aad_version` argument is also set
#' to 2. Both are set to use AAD version 1 by default.
#' @param tenant A string specifying the Azure tenant. Defaults to
#' `"common"`. See [AzureAuth::get_azure_token] for other values.
#' @param tenant A string specifying the Azure tenant. Defaults to `"common"`.
#' See [AzureAuth::get_azure_token] for other values.
#' @param client_id A string specifying the application ID (aka client ID). If
#' `NULL`, (the default) the function attempts to obtain the client ID from the
#' Azure Resource Manager token, or prompts the user to log in to obtain it.
Expand Down
4 changes: 2 additions & 2 deletions R/list_files.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
list_files <- function(container, dir = "", ext = "", recursive = FALSE) {
stopifnot(rlang::is_character(c(dir, ext), 2))
stopifnot(rlang::is_bool(recursive))
pnf_msg <- ct_error_msg("Path {.val {path}} not found")
pnf_msg <- ct_error_msg("Path {.val {dir}} not found")
check_that(dir, \(x) AzureStor::blob_dir_exists(container, x), pnf_msg)

ext_rx <- ifelse(nzchar(ext), gsub("^\\.+", "\\.", ext), ".*") # nolint
Expand All @@ -40,7 +40,7 @@ list_files <- function(container, dir = "", ext = "", recursive = FALSE) {
if (nrow(tbl) == 0) {
fix_path <- \(p) sub("^/+$", "", sub("^([^/])(.*)", "/\\1\\2", p)) # nolint
ext <- if (nzchar(ext)) paste0(" ", ext)
msg <- "No{ext} files found in {.val [{container$name}]:{fix_path(path)}}"
msg <- "No{ext} files found in {.val [{container$name}]:{fix_path(dir)}}"
cli::cli_alert_info(msg)
invisible(character(0))
} else {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ csv_data <- data_container |>

## Environment variables

To facilitate access to Azure Storage you may want to set some environment
To facilitate access to Azure Storage you should set some environment
variables.
The neatest way to do this is to include a [`.Renviron` file][posit_env] in
your project folder.
Expand Down
4 changes: 2 additions & 2 deletions man/get_auth_token.Rd

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

Loading
Loading