Skip to content

Instantly share code, notes, and snippets.

@mattgalbraith
Created February 1, 2023 18:25
Show Gist options
  • Save mattgalbraith/46478ed005152691a9d145130ca5f8fb to your computer and use it in GitHub Desktop.
Save mattgalbraith/46478ed005152691a9d145130ca5f8fb to your computer and use it in GitHub Desktop.
R function to get object size in human-readable units
obj_size <- function(x) object.size(x) %>% print(units = "auto")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment