View source: R/capture_session.R
| capture_environment | R Documentation |
Captures the current global environment state including objects and their types
capture_environment(
output_file = NULL,
include_values = FALSE,
max_size = 1024 * 1024
)
output_file |
Character. Path to save environment info. If NULL, returns as list. |
include_values |
Logical. Whether to include object values (for small objects). Default FALSE. |
max_size |
Numeric. Maximum object size (in bytes) to include values. Default 1MB. |
A list containing environment information
## Not run:
x <- 1:10
y <- "test"
capture_environment("env_state.json")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.