powered by
Captures the current global environment state including objects and their types
capture_environment( output_file = NULL, include_values = FALSE, max_size = 1024 * 1024 )
A list containing environment information
Character. Path to save environment info. If NULL, returns as list.
Logical. Whether to include object values (for small objects). Default FALSE.
Numeric. Maximum object size (in bytes) to include values. Default 1MB.
if (FALSE) { x <- 1:10 y <- "test" capture_environment("env_state.json") }
Run the code above in your browser using DataLab