magclass (version 4.107.0)

sizeCheck: sizeCheck

Description

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

Usage

sizeCheck(dim, newnames)

Arguments

dim

dimensions of the current object as returned by function dim

newnames

a list of new dimensions to be added to the object

Examples

Run this code
# NOT RUN {
magclass:::sizeCheck(dim(population_magpie),dimnames(population_magpie))

# }

Run the code above in your browser using DataLab