Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
add ... to s3_upload_yaml to fix issue when per rstudio#625
Browse files Browse the repository at this point in the history
  • Loading branch information
fh-mthomson committed Sep 10, 2022
1 parent 7379792 commit 5ffe42d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/board_s3.R
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ pin_store.pins_board_s3 <- function(board, name, paths, metadata,
version <- version_setup(board, name, version_name(metadata), versioned = versioned)

version_dir <- fs::path(name, version)
s3_upload_yaml(board, fs::path(version_dir, "data.txt"), metadata)
s3_upload_yaml(board, fs::path(version_dir, "data.txt"), metadata, ...)
for (path in paths) {
s3_upload_file(board, fs::path(version_dir, fs::path_file(path)), path, ...)
}
Expand Down Expand Up @@ -265,12 +265,13 @@ s3_delete_dir <- function(board, dir) {
invisible()
}

s3_upload_yaml <- function(board, key, yaml) {
s3_upload_yaml <- function(board, key, yaml, ...) {
body <- charToRaw(yaml::as.yaml(yaml))
board$svc$put_object(
Bucket = board$bucket,
Key = paste0(board$prefix, key),
Body = body
Body = body,
...
)
}

Expand Down

0 comments on commit 5ffe42d

Please sign in to comment.