Checks that the provided value x (in bytes) does not exceed the available system RAM as returned by
sys_available_ram(). If the check fails, an error is thrown.
Usage
check_available_ram(x, arg = rlang::caller_arg(x), call = rlang::caller_env())Arguments
- x
The object to check.
- arg
An argument name as a string. This argument will be mentioned in error messages as the input that is at the origin of a problem.
- call
The execution environment of a currently running function, e.g.
caller_env(). The function will be mentioned in error messages as the source of the error. See thecallargument ofabort()for more information.