s3read_using: Run function on file downloaded from S3

View source: R/download.R

s3read_usingR Documentation

Run function on file downloaded from S3

Description

Modified version of aws.s3::s3read_using(). The difference with the original implementation is that filename is taken "verbatim" rather than made relative to tempdir.

Usage

s3read_using(
  FUN,
  object,
  ...,
  bucket,
  opts = NULL,
  filename = NULL,
  progress = TRUE
)

Arguments

FUN

function accepting file path as first argument

object

S3 object (i.e., object name or full s3://... url)

...

passed as extra arguments to FUN

bucket

S3 bucket, uses bucket from object if missing

opts

see aws.s3::s3read_using()

filename

File name to save S3 object to (defaults to using tempfile())

progress

Toggle display of progress bar


Paradigm4/revealcore documentation built on May 21, 2023, 9:57 a.m.