Returns the default resource limits that are applied automatically when
sandbox = TRUE and no explicit limits are provided to
SecureSession or execute_r(). Useful for inspecting the defaults
and creating custom limits based on them.
Details
The returned list contains:
- cpu
CPU time limit in seconds (default: 60).
- memory
Virtual memory limit in bytes (default: 512 MB).
- fsize
Maximum file size in bytes (default: 50 MB).
- nproc
Maximum number of child processes (default: 50).
- nofile
Maximum number of open file descriptors (default: 256).
You can pass a modified copy to SecureSession$new(limits = ...) or
execute_r(limits = ...). Pass limits = list() to explicitly
disable all resource limits.