write_df_to_csv_in_s3: Write an in-memory data frame to a csv file stored in S3

Description Usage Arguments Value Examples

View source: R/write_to_s3.R

Description

Write an in-memory data frame to a csv file stored in S3

Usage

1
2
write_df_to_csv_in_s3(df, s3_path, overwrite = FALSE, multipart = TRUE,
  ...)

Arguments

df

A data frame you want to upload to S3.

s3_path

A character string containing the full path to where the file should be stored in S3, including any directory names and the bucket name.

overwrite

A logical indicating whether to overwrite the file if it already exists.

multipart

A logical indicating whether to use multipart uploads. See http://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html. If df is less than 100 MB when written to csv, this is ignored.

Value

Returns nothing

Examples

1
write_df_to_csv_in_s3(df, "alpha-everyone/delete/my_csv.csv")

moj-analytical-services/s3tools documentation built on Sept. 13, 2021, 5:31 a.m.