download_attachments {rockx}R Documentation

Download attachments for table rows

Description

This function downloads attachments for the specified table rows and saves them in a structured directory. Each row with attachments will have a dedicated folder under the table-specific subdirectory.

Usage

download_attachments(
  rows,
  table_meta,
  save_to_directory,
  skip_if_instance_folder_exists = FALSE
)

Arguments

rows

A tibble or data frame containing the table rows to download attachments for.

table_meta

List. Metadata for the table, as returned by get_table_metadata(table_name).

save_to_directory

String. The parent directory where attachments will be saved. A subdirectory with the name of the table will be created, and each row with attachments will have its own subfolder under this directory.

skip_if_instance_folder_exists

Logical. If TRUE, rows with an existing instance folder will be skipped to avoid re-downloading attachments. Defaults to FALSE.

Value

Invisibly returns NULL. Downloads the attachments as a side effect.


[Package rockx version 0.1.0 Index]