Learn R Programming

jrc (version 0.2.1)

authorize: Authorize further message processing

Description

`jrc` library allows one to get a full control over the currently running R session from a web page. Therefore for security reasons one should manually authorize function calls, variable assignments or expression evaluations. All the received messages that are not processed automatically are given an ID and stored. This function executes a command from a message with a given ID

Usage

authorize(id = NULL, show = FALSE)

Arguments

id

ID of the message to be processed. In `jrc` library all stored messages are give a random ID that consists of 6 letters or numbers. The ID is reported when the message is stored. To get a list of IDs of all currently stored messages, set this argument to NULL.

show

If TRUE information of the message with a given ID will be show before executing it with a choice to go on with execution, ignore the message (meaning it will be removed from memory) or do nothing.

Value

A vector of IDs of all currently stored messages.

Details

Expressions has to be always authorized before evaluation. One can specify a list of variables that can be reassigned automatically and functions that can be called without authorization.

See Also

allowFunctions, allowVariables, sendCommand, sendData, callFunction, limitStorage.