jrc (version 0.3.0)

getMessageIds: Get IDs of all stored messages

Description

Returns IDs of all currently stored messages.

Usage

getMessageIds(sessionId = NULL, simplify = TRUE)

Arguments

sessionId

ID of the session for which to return message IDs. Can also be a vector of multiple session IDs. If NULL, returns message IDs for all currently active sessions.

simplify

If TRUE and only one session ID is provided (or there is only one active session), returns a vector of message IDs. Otherwise returns a named list with one vector for each requested session.

Value

Either a named list or a vector with message IDs.

Details

For security reasons, most of the messages that are received from web pages require manual authorization in the R session with authorize function. Until that happens, messages are given randomly generated IDs and are stored in memory.

This function is a wrapper around method getMessageIds of class Session.

See Also

authorize, getSessionIds.