s3_save: Save R object to S3 guessing type from extension

View source: R/s3.R

s3_saveR Documentation

Save R object to S3 guessing type from extension

Description

Save R object to S3 guessing type from extension

Usage

s3_save(object, s3_url, conf = list(), args_save = list(), quiet = FALSE, ...)

Arguments

object

current session object to save

s3_url

string S3 URL to save to. Needs to include the bucket and protocol (s3://bucket_name/)

conf

list with 'key', 'secret', 'region', and 'base_url' parameters. If missing, will look for AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_DEFAULT_REGION in environment variables.

args_save

optional, additional arguments passed to save function

quiet

logical turn off output messages, default to FALSE

...

additional arguments passed to aws.s3::put_object

Examples

## Not run: 
s3_save(cars, "s3://hfty-test-bucket/cars.rds")
s3_save(cars, "s3://hfty-test-bucket/cars.csv")
s3_save(cars, "s3://hfty-test-bucket/cars.fwf")

## End(Not run)


fcocquemas/hfty.helpers documentation built on Feb. 13, 2023, 7:25 a.m.