| with_goose_session | R Documentation |
Execute code with automatic gooseR session management
with_goose_session(expr, cleanup = TRUE, session_id = NULL)
expr |
Expression to evaluate |
cleanup |
Logical, whether to clean up after execution |
session_id |
Optional session identifier |
Result of expression
## Not run:
# Run analysis with automatic cleanup
result <- with_goose_session({
goose_save(mtcars, "cars", category = "temp")
goose_save(iris, "flowers", category = "temp")
# Do analysis...
"Analysis complete"
}, cleanup = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.