foundry_file_download: Download Microsoft Foundry file content

View source: R/files.R

foundry_file_downloadR Documentation

Download Microsoft Foundry file content

Description

Download Microsoft Foundry file content

Usage

foundry_file_download(
  file_id,
  path,
  overwrite = FALSE,
  api_key = NULL,
  token = NULL,
  endpoint = NULL,
  api_version = NULL
)

Arguments

file_id

Character. File ID to download.

path

Character. Local path where the file content should be written.

overwrite

Logical. Whether to overwrite an existing file.

api_key

Character. Optional API key override.

token

Character. Optional bearer token override.

endpoint

Character. Optional endpoint override.

api_version

Character. Optional API version query value.

Value

A tibble with the local path, number of bytes written, and file ID.

Examples

## Not run: 
# Requires a configured Azure endpoint, credentials, and an uploaded file ID.
local({
  path <- tempfile(fileext = ".jsonl")
  on.exit(unlink(path))
  foundry_file_download("file_abc123", path)
})

## End(Not run)

foundryR documentation built on Sept. 25, 2026, 1:10 a.m.