Skip to contents

Get metadata for a single session

Usage

get_session_info(session_id, directory = NULL)

Arguments

session_id

Character. UUID of the session.

directory

Character or NULL. Project directory; when NULL all project directories are searched.

Value

An SDKSessionInfo object, or NULL if not found.

Examples

# \donttest{
sessions <- list_sessions(limit = 1L)
if (length(sessions) > 0) {
  info <- get_session_info(sessions[[1]]$session_id)
  info$session_id
}
# }