dot-validate_payload_size: Check if a payload is within the size in MB threshold.

.validate_payload_sizeR Documentation

Check if a payload is within the size in MB threshold.

Description

Raise an exception if the payload is beyond the size in MB threshold.

Usage

.validate_payload_size(payload, size)

Arguments

payload

: data that will be checked

size

(int): max size in MB

Value

bool: True if within bounds. if size=0 it will always return True


DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.