Skip to content

Commit

Permalink
Fix bug in 'trigger_download'
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Sep 21, 2024
1 parent 4b43b94 commit 9811d42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/context_calls.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
#' }
#' @export
trigger_download <- function(ctx, type = c("csv", "json", "xlsx"), file_name = NULL) {
type <- match.arg(type)
if (is.null(file_name)) {
file_name <- glue::glue("data.{type}")
}

invoke_method(ctx, "download", match.arg(type), file_name)
invoke_method(ctx, "download", type, file_name)
}

#' Submit data to R
Expand Down

0 comments on commit 9811d42

Please sign in to comment.