View source: R/capture_session.R
| capture_session | R Documentation |
Captures comprehensive R session information including R version, platform, loaded packages, system information, and locale settings.
capture_session(output_file = NULL, format = c("json", "yaml", "rds"))
output_file |
Character. Path to save the session info. If NULL, returns as list. |
format |
Character. Output format: "json", "yaml", or "rds". Default is "json". |
A list containing session information, invisibly returned
## Not run:
# Capture session info to JSON
capture_session("session_info.json")
# Capture and return as list
info <- capture_session()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.