Downloads a file from an S3 bucket and reads it into a tidylearn_data
object. The file format is auto-detected from the key's extension, or can be
specified explicitly. Requires the paws.storage package and valid AWS
credentials.
Arguments
- source
An S3 URI (e.g.,
"s3://bucket/path/to/file.csv"). Zip archives are not read from S3: download the object and read it withtl_read_zip().- format
Optional format override for the downloaded file. If
NULL, auto-detected from the S3 key extension.- region
AWS region. If
NULL, uses the default from your AWS configuration.- ...
Additional arguments passed to the format-specific reader.
- trust_rds
Logical. Read an
.rds,.rdataor.rdaobject on R older than 4.4.0? Those versions can run code embedded in a crafted file as it is read (CVE-2024-27322), so such objects are refused there unless this isTRUE. It has no effect on R 4.4.0 or later. DefaultFALSE.
