magclass (version 6.13.2)

sizeCheck: sizeCheck

Description

Calculates expected magclass object length and checks that it stays below the limit defined with magclass_sizeLimit (default = 10^9). This is useful to prevent out of memory errors in case of unwanted object expansions Ignored if getOption("magclass_sizeLimit") is negative.

Usage

sizeCheck(dim)

Arguments

dim

dimensions of the current object as returned by function dim

Author

Jan Philipp Dietrich

Examples

Run this code
pop <- maxample("pop")
magclass:::sizeCheck(dim(pop))

if (FALSE) {
magclass:::sizeCheck(c(6765L, 10946L, 17711L))
}

Run the code above in your browser using DataLab