A function to check the size of a data variable whether is in the right range.

check_object_size(object, max_ram = 2, target_unit = "Gb")

Arguments

object

An object that is required to check.

max_ram

The maximum size of the target object.

target_unit

The target unit that is constrained. The value is one of c('bytes', 'Kb', 'Mb', 'Gb', 'Tb', 'Pb').

Value

A NULL value if there is no issue raised.