Return an arrow::s3_bucket() (or local) handle for a partitioned dataset under a server/prefix.
flare_arrow_s3_bucket.RdUsed for arrow::open_dataset() / arrow::write_dataset() calls.
Note that under any mode, arrow operations on the returned handle
transit directly between R and the storage backend — they do not
funnel through the FaaSr RPC server. FaaSr (when in mode="faasr")
provides the credentials, but not the traffic path.
Usage
flare_arrow_s3_bucket(
server_name = "",
faasr_prefix = "",
local_path = NULL,
mode_override = NULL,
config
)Arguments
- server_name
Name of the DataStore (key under
config$s3).- faasr_prefix
Optional sub-prefix appended to the bucket path.
- local_path
Filesystem path used in
mode="local". Caller is responsible for constructing this from any per-driver YAML conventions (e.g.config$met$future_met_model). Ignored inmode="s3"/"faasr". If NULL inmode="local", falls back to<.flare_local_root(config)>/<server_name>/<faasr_prefix>.- mode_override
Optional explicit mode (
"local","s3", or"faasr") that bypassesflare_io_mode(config). Used when a per-driver YAML toggle (e.g.config$met$future_met_use_s3,config$flows$use_flows_s3) makes a specific driver local while global outputs still go to S3. NULL (default) uses config-driven dispatch.- config
FLAREr config list.
Value
An arrow::s3_bucket() handle (modes s3/faasr) or
arrow::SubTreeFileSystem (mode local).