Skip to content

Commit e895c1e

Browse files
committed
update args
1 parent aa78c08 commit e895c1e

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

R/attachments.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#' download_attachments(att, "layer_attachments")
4040
#' }
4141
query_layer_attachments <- function(
42-
layer,
42+
x,
4343
definition_expression = "1=1",
4444
object_ids = NULL,
4545
global_ids = NULL,
@@ -51,11 +51,11 @@ query_layer_attachments <- function(
5151
# returnMetadata, size,
5252
) {
5353
# ensure that attachments are available.
54-
if (!layer[["hasAttachments"]]) {
54+
if (!x[["hasAttachments"]]) {
5555
cli::cli_abort("{.arg layer} does not support attachments.")
5656
}
5757

58-
b_req <- arc_base_req(layer[["url"]], token = token, path = "queryAttachments")
58+
b_req <- arc_base_req(x[["url"]], token = token, path = "queryAttachments")
5959

6060
# check that only one of definition_expression, object_ids, and global_ids is provided
6161
rlang::check_exclusive(definition_expression, object_ids, global_ids, .require = FALSE)

man/attachments.Rd

Lines changed: 24 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)