Skip to contents

Optionally customize SafeMapper behavior. This function is NOT required for basic usage - SafeMapper works out of the box with sensible defaults.

Usage

s_configure(batch_size = 100L, retry_attempts = 3L, auto_recover = TRUE)

Arguments

batch_size

Integer. Number of items to process per batch before checkpointing. Smaller values provide more frequent saves but may slow processing. Default is 100.

retry_attempts

Integer. Number of retry attempts for failed batches. Default is 3.

auto_recover

Logical. Whether to automatically resume from checkpoints when restarting operations. Default is TRUE.

Value

Invisible list of current configuration settings.

Examples

# Basic usage - no configuration needed!
# result <- s_map(1:100, slow_function)

# Optional: customize for large operations
s_configure(batch_size = 50)

# Optional: customize for unstable operations
s_configure(retry_attempts = 5)