s3_read: Read S3 file to R guessing type from extension

View source: R/s3.R

s3_readR Documentation

Read S3 file to R guessing type from extension

Description

Read S3 file to R guessing type from extension

Usage

s3_read(s3_url, conf = list(), args_read = list(), ...)

Arguments

s3_url

string S3 URL to read. 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_read

optional, additional arguments passed to read function

...

additional arguments passed to aws.s3::save_object

Examples

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

## End(Not run)


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