dot-calculate_checksum: Calculate Checksum with Smart Algorithm Selection

.calculate_checksumR Documentation

Calculate Checksum with Smart Algorithm Selection

Description

Internal function to calculate file checksum using appropriate algorithm based on file size. Large files use faster xxHash, small files use SHA-256.

Usage

.calculate_checksum(file_path, fast_hash, size_threshold_gb, file_size_gb)

Arguments

file_path

Character. Path to file

fast_hash

Logical. Whether to use fast hashing for large files

size_threshold_gb

Numeric. Size threshold in GB

file_size_gb

Numeric. Actual file size in GB

Value

List with checksum and algorithm


Capsule documentation built on Nov. 11, 2025, 5:14 p.m.