Skip to contents

save your files with tryCatch() to implement retry capability

Usage

write_to_S3(df, format, object, bucket)

Arguments

df,

format, object, bucket

Examples

write_to_S3(df = results_df, format = "csv", object = file.path("target_s3_path.csv"), bucket = "bucket_name")
#> [1] "Couldn't write in the first try."
#> [1] "Now trying again..."
#> Warning: restarting interrupted promise evaluation
#> Error in eval(expr, envir, enclos): object 'results_df' not found