Skip to contents

Downloads a CSV object stored in a MinIO bucket and reads it into memory as a data.frame. Internally, the function retrieves the object contents as raw bytes using minio_get_object and then delegates parsing to read.csv.

Usage

minio_get_csv(bucket, object, ...)

Arguments

bucket

Character. Name of the MinIO bucket.

object

Character. Object key (path) of the CSV file within the bucket.

...

Additional arguments passed to read.csv(), such as sep, header, stringsAsFactors, fileEncoding, etc.

Value

A data.frame containing the contents of the CSV file.

Details

Additional arguments are passed directly to read.csv(), allowing control over separators, headers, encoding, and other parsing options.

Examples

if (FALSE) { # \dontrun{
df <- minio_get_csv(
  bucket = "assets",
  object = "path/file.csv",
  sep = ";",
  header = TRUE,
  fileEncoding = "latin1"
)
} # }