mem_check: Check for memory limits

Description Usage Arguments Examples

Description

This function tests whether the currently used memory is above a given limit (Default to 999 MB) and either gives out an error or the value of it's second argument.

Usage

1
mem_check(limit = 999, error_message = NULL, only_warn = FALSE)

Arguments

limit

Numerical value for maximum memory usage allowed (Default is 999 MB)

error_message

Error message to be returned, in case of exceeded memory limit.

only_warn

Should instead only a warning be given? (Default is FALSE)

Examples

1
2
3
4
## Not run: 
grap_ped(1067, df_ped)

## End(Not run)

johow/kinlab documentation built on July 5, 2019, 4:23 p.m.