Skip to content

Instantly share code, notes, and snippets.

@mattgalbraith
Created February 1, 2023 18:25
Show Gist options
  • Save mattgalbraith/4fccf698f25e3ffcf43bd689710f2dff to your computer and use it in GitHub Desktop.
Save mattgalbraith/4fccf698f25e3ffcf43bd689710f2dff to your computer and use it in GitHub Desktop.
R function to check current memory usage
mem_used <- function() lobstr::mem_used() %>% as.numeric() %>% R.utils::hsize()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment