Learn R Programming

gooseR (version 0.1.2)

goose_session_start: Start a gooseR session for tracking saved items

Description

Note: To automatically tag items with the session ID, you need to manually add the session tag when saving, or use the wrapper functions.

Usage

goose_session_start(session_id = NULL)

Value

Character, the session ID

Arguments

session_id

Character, optional session identifier

Examples

Run this code
if (FALSE) {
# Start a session
session_id <- goose_session_start()

# Save items (manually tag with session)
goose_save(mtcars, "cars_data", category = "analysis", 
           tags = c("myanalysis", getOption("goose.session_id")))

# See what was saved in this session
goose_session_list()

# Clean up session
goose_session_clear()
goose_session_end()
}

Run the code above in your browser using DataLab