r-lib / lobstr

Understanding complex R objects with tools similar to str()
https://lobstr.r-lib.org/
Other
303 stars 27 forks source link

obj_size crashes R if run on parent of global env #37

Closed wch closed 5 years ago

wch commented 5 years ago

Example:

obj_size(parent.env(.GlobalEnv), env = emptyenv())
hadley commented 5 years ago

Works for me now:

lobstr::obj_size(parent.env(.GlobalEnv))
#> 13,298,768 B
library(tidyverse)
lobstr::obj_size(parent.env(.GlobalEnv))
#> 31,948,096 B

Created on 2019-06-07 by the reprex package (v0.2.1.9000)