View source: R/s3_transfer_bulk.R
cloud_s3_write_bulk | R Documentation |
This function allows for the bulk writing of multiple R objects
to the project's designated S3 folder. To prepare a list of objects for
writing, use cloud_object_ls, which generates a dataframe listing the
objects and their intended destinations in a format akin to the output of
cloud_s3_ls. By default, the function determines the appropriate writing
method based on each file's extension. However, if a specific writing
function is provided via the fun
parameter, it will be applied to all
files, which may not be ideal if dealing with a variety of file types.
cloud_s3_write_bulk(
content,
fun = NULL,
...,
local = FALSE,
quiet = FALSE,
root = NULL
)
content |
(data.frame) output of |
fun |
A custom writing function. If |
... |
Additional arguments to pass to the writing function |
local |
Logical, defaulting to |
quiet |
all caution messages may be turned off by setting this parameter
to |
root |
S3 path of the project root. This serves as the reference point
for all relative paths. When left as |
Invisibly returns the input content
dataframe.
# write two csv files: data/df_mtcars.csv and data/df_iris.csv
cloud_object_ls(
dplyr::lst(mtcars = mtcars, iris = iris),
path = "data",
extension = "csv",
prefix = "df_"
) |>
cloud_s3_write_bulk()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.