View source: R/release_memory.R
| release_memory | R Documentation |
Runs full garbage collection and, on Linux/glibc, calls
malloc_trim(0) to return free heap pages to the operating system.
Useful after large temporary matrices are removed in memory-heavy RAS
pipeline stages.
release_memory(verbose = TRUE)
verbose |
Logical. If |
On non-Linux platforms the C call is skipped and NA is returned
silently; no error is raised.
Invisibly returns the malloc_trim(0) result:
1 if heap pages were returned to the OS,
0 if nothing was returned,
NA_integer_ on non-Linux platforms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.