Options for the repl function.

interface FlowrReplOptions {
    allowRSessionAccess?: boolean;
    historyFile?: string;
    output?: ReplOutput;
    rl?: Interface;
    shell?: RShell;
}

Hierarchy (view full)

Hierarchy-Diagram

UML class diagram of FlowrReplOptions

Properties

allowRSessionAccess?: boolean

If true, allows the execution of arbitrary R code. This is a security risk, as it allows the execution of arbitrary R code.

historyFile?: string

The file to use for persisting the repl's history. Passing undefined causes history not to be saved.

output?: ReplOutput

Defines two methods that every function in the repl uses to output its data.

rl?: Interface

A potentially customized readline interface to be used for the repl to read from the user, we write the output with the output interface.

shell?: RShell

The shell to use, if you do not pass one it will automatically create a new one with the revive option set to 'always'.